gdi: Never fail at DLL load time.

Windows doesn't really expect things to fail at this point -- it
will try many times until it finally gives up, worse, something bad
happens.

The WGL state tracker will gracefully decline to do work even when it
is loaded.
This commit is contained in:
José Fonseca 2010-02-11 16:34:43 +00:00
parent e6b66210de
commit 8ce747defa
2 changed files with 10 additions and 10 deletions

View File

@ -251,13 +251,13 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
if (!stw_init(&stw_winsys)) {
return FALSE;
}
return stw_init_thread();
stw_init(&stw_winsys);
stw_init_thread();
break;
case DLL_THREAD_ATTACH:
return stw_init_thread();
stw_init_thread();
break;
case DLL_THREAD_DETACH:
stw_cleanup_thread();

View File

@ -297,13 +297,13 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
if (!stw_init(&stw_winsys)) {
return FALSE;
}
return stw_init_thread();
stw_init(&stw_winsys);
stw_init_thread();
break;
case DLL_THREAD_ATTACH:
return stw_init_thread();
stw_init_thread();
break;
case DLL_THREAD_DETACH:
stw_cleanup_thread();