imm32: Fix crash in DllMain when FreeLibrary is called from a thread which existed...
commitf970db947a1cb1aedcec4e7adb946428c7fb6e96
authorRob Shearman <robertshearman@gmail.com>
Tue, 24 Feb 2009 14:50:55 +0000 (24 14:50 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Feb 2009 15:57:31 +0000 (24 16:57 +0100)
tree24b4b1c3e4127d2a32f9cf5dad12d9bb039a8963
parentfe0da5e5288b6409d6312ed34073d21875b32ec6
imm32: Fix crash in DllMain when FreeLibrary is called from a thread which existed before the DLL was loaded.

The code in IMM_FreeThreadData shouldn't assume that thread data will
always have been created, so check for NULL data.

Make loading the DLL more robust against errors.
dlls/imm32/imm.c