Author: jimtabor
Date: Sat Apr 21 05:56:47 2007
New Revision: 26447
URL:
http://svn.reactos.org/svn/reactos?rev=26447&view=rev
Log:
Initialize stock_object cache.
Modified:
trunk/reactos/dll/win32/gdi32/main/dllmain.c
Modified: trunk/reactos/dll/win32/gdi32/main/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/main/dllma…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/main/dllmain.c (original)
+++ trunk/reactos/dll/win32/gdi32/main/dllmain.c Sat Apr 21 05:56:47 2007
@@ -8,6 +8,8 @@
*/
#include "precomp.h"
+
+extern HGDIOBJ stock_objects[];
/*
* GDI32.DLL doesn't have an entry point. The initialization is done by a call
@@ -67,7 +69,10 @@
NtCurrentTeb()->GdiTebBatch.Offset = 0;
NtCurrentTeb()->GdiBatchCount = 0;
#endif
-
+#if 0
+ // Very simple, the list will fill itself as it is needed.
+ RtlZeroMemory( &stock_objects, NB_STOCK_OBJECTS); //Assume Ros is dirty.
+#endif
return TRUE;
}