mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 13:09:14 +00:00
![David Major](/assets/img/avatar_default.png)
CreateThreadAttributeList warns: // Note that the pointer to the HANDLE array ends up embedded in the result of // this function and must stay alive until FreeThreadAttributeList is called, // hence it is passed in so the owner is the caller of this function. but the caller was passing a |handlesToInherit| that was declared inside a block scope that ends before we're finished using lpAttributeList. This happened to work on MSVC but leads to badness under clang-cl. + Bonus fix for a sometimes-uninitialized warning in CreateThreadAttributeList. MozReview-Commit-ID: 6uu3ICjfj5k --HG-- extra : rebase_source : 45fd2e4084c80ab60bcf7bee8e1575b40b5b3283