mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
merge down changes from win32k-gdi-dx
1. Cleanup the layout it was mix of space and tab for whitespace 2. dllmain add same behoirs as xp/vista svn path=/trunk/; revision=33797
This commit is contained in:
parent
1177ff923f
commit
61f33dad43
|
@ -15,7 +15,7 @@ PDEVCAPS GdiDevCaps = NULL;
|
|||
PGDIHANDLECACHE GdiHandleCache = NULL;
|
||||
|
||||
/*
|
||||
* GDI32.DLL doesn't have an entry point. The initialization is done by a call
|
||||
* GDI32.DLL does have an entry point for disable threadlibrarycall,. The initialization is done by a call
|
||||
* to GdiDllInitialize(). This call is done from the entry point of USER32.DLL.
|
||||
*/
|
||||
BOOL
|
||||
|
@ -23,9 +23,17 @@ WINAPI
|
|||
DllMain (
|
||||
HANDLE hDll,
|
||||
DWORD dwReason,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
LPVOID lpReserved)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH :
|
||||
DisableThreadLibraryCalls(hDll);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -54,8 +62,7 @@ WINAPI
|
|||
GdiDllInitialize (
|
||||
HANDLE hDll,
|
||||
DWORD dwReason,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
LPVOID lpReserved)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue