gecko-dev/ipc/chromium
David Major c66cdc62d8 Bug 1321875: Fix relative lifetimes of lpAttributeList and handlesToInherit in LaunchApp. r=aklotz
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
2016-12-02 14:49:41 -06:00
..
atomics Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
src Bug 1321875: Fix relative lifetimes of lpAttributeList and handlesToInherit in LaunchApp. r=aklotz 2016-12-02 14:49:41 -06:00
chromium-config.mozbuild Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.build Bug 1147911 Part 9: Ensure file read permissions for file content process on Windows. r=jimm, r=jld 2016-11-24 15:08:32 +00:00