mirror of
https://github.com/reactos/reactos.git
synced 2024-10-23 22:40:47 +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;
|
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.
|
* to GdiDllInitialize(). This call is done from the entry point of USER32.DLL.
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
|
@ -23,9 +23,17 @@ WINAPI
|
||||||
DllMain (
|
DllMain (
|
||||||
HANDLE hDll,
|
HANDLE hDll,
|
||||||
DWORD dwReason,
|
DWORD dwReason,
|
||||||
LPVOID lpReserved
|
LPVOID lpReserved)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
|
switch (dwReason)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH :
|
||||||
|
DisableThreadLibraryCalls(hDll);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +62,7 @@ WINAPI
|
||||||
GdiDllInitialize (
|
GdiDllInitialize (
|
||||||
HANDLE hDll,
|
HANDLE hDll,
|
||||||
DWORD dwReason,
|
DWORD dwReason,
|
||||||
LPVOID lpReserved
|
LPVOID lpReserved)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
switch (dwReason)
|
switch (dwReason)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue