Built-in dlls now have resources attached via the PE-header like
normal dlls. This enables the use of the resource API.
diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
index fa7a3a0..928a8d5 100644
--- a/dlls/comctl32/commctrl.c
+++ b/dlls/comctl32/commctrl.c
@@ -38,6 +38,7 @@
HANDLE COMCTL32_hHeap = (HANDLE)NULL;
DWORD COMCTL32_dwProcessesAttached = 0;
LPSTR COMCTL32_aSubclass = (LPSTR)NULL;
+HMODULE COMCTL32_hModule = 0;
/***********************************************************************
@@ -61,6 +62,10 @@
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
if (COMCTL32_dwProcessesAttached == 0) {
+
+ /* This will be wrong for any other process attching in this address-space! */
+ COMCTL32_hModule = (HMODULE)hinstDLL;
+
/* create private heap */
COMCTL32_hHeap = HeapCreate (0, 0x10000, 0);
TRACE (commctrl, "Heap created: 0x%x\n", COMCTL32_hHeap);