winsys/gdi: Init state tracker's per-thread data.

This commit is contained in:
Michal Krol 2009-03-20 13:06:28 +01:00
parent 4489f9efee
commit 36e985e96e
1 changed files with 12 additions and 1 deletions

View File

@ -312,9 +312,20 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
return st_init(&stw_winsys);
if (!st_init(&stw_winsys)) {
return FALSE;
}
return st_init_thread();
case DLL_THREAD_ATTACH:
return st_init_thread();
case DLL_THREAD_DETACH:
st_cleanup_thread();
break;
case DLL_PROCESS_DETACH:
st_cleanup_thread();
st_cleanup();
break;
}