From bdc91e134592391c057cc442bf7bdcead178c5cb Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 21 Apr 2007 01:56:47 +0000 Subject: [PATCH] Initialize stock_object cache. svn path=/trunk/; revision=26447 --- reactos/dll/win32/gdi32/main/dllmain.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/gdi32/main/dllmain.c b/reactos/dll/win32/gdi32/main/dllmain.c index deed120d541..5d4218370e8 100644 --- a/reactos/dll/win32/gdi32/main/dllmain.c +++ b/reactos/dll/win32/gdi32/main/dllmain.c @@ -9,6 +9,8 @@ #include "precomp.h" +extern HGDIOBJ stock_objects[]; + /* * GDI32.DLL doesn't have an entry point. The initialization is done by a call * to GdiDllInitialize(). This call is done from the entry point of USER32.DLL. @@ -67,7 +69,10 @@ GdiDllInitialize ( 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; }