PATCH - Remove Free LoadLibrary16 and FreeLibrary16 calls in comdlg32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is untested as I still cannot load/use comdlg32 under Windows.

Thanks
Steven

Changelog:
Remove unneeded? calls to LoadLibrary16 and FreeLibrary16

Index: cdlg32.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/cdlg32.c,v
retrieving revision 1.26
diff -u -r1.26 cdlg32.c
--- cdlg32.c    21 Nov 2002 23:55:10 -0000    1.26
+++ cdlg32.c    25 Jun 2003 17:16:03 -0000
@@ -31,8 +31,6 @@


HINSTANCE COMDLG32_hInstance = 0; -static HINSTANCE16 COMDLG32_hInstance16; - static DWORD COMDLG32_TlsIndex;

HINSTANCE    SHELL32_hInstance = 0;
@@ -78,7 +76,6 @@
        COMDLG32_hInstance = hInstance;
        DisableThreadLibraryCalls(hInstance);

-        COMDLG32_hInstance16 = LoadLibrary16("commdlg.dll");
        COMDLG32_TlsIndex = 0xffffffff;

        SHELL32_hInstance = GetModuleHandleA("SHELL32.DLL");
@@ -120,7 +117,6 @@

case DLL_PROCESS_DETACH:
if (COMDLG32_TlsIndex != 0xffffffff) TlsFree(COMDLG32_TlsIndex);
- if(COMDLG32_hInstance16) FreeLibrary16(COMDLG32_hInstance16);
if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance);
break;
}





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux