mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
Initialize stock_object cache.
svn path=/trunk/; revision=26447
This commit is contained in:
parent
28d7cf70fc
commit
bdc91e1345
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
|
|
||||||
|
extern HGDIOBJ stock_objects[];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GDI32.DLL doesn't have an entry point. The initialization is done by a call
|
* 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.
|
* to GdiDllInitialize(). This call is done from the entry point of USER32.DLL.
|
||||||
|
@ -67,7 +69,10 @@ GdiDllInitialize (
|
||||||
NtCurrentTeb()->GdiTebBatch.Offset = 0;
|
NtCurrentTeb()->GdiTebBatch.Offset = 0;
|
||||||
NtCurrentTeb()->GdiBatchCount = 0;
|
NtCurrentTeb()->GdiBatchCount = 0;
|
||||||
#endif
|
#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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue