Commit 5552da92 authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

Remove unneeded calls to LoadLibrary16 and FreeLibrary16.

parent 1ae17975
......@@ -20,7 +20,6 @@
*/
#include "winbase.h"
#include "wine/winbase16.h"
#include "commdlg.h"
#include "cderr.h"
#include "wine/debug.h"
......@@ -31,7 +30,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
HINSTANCE COMDLG32_hInstance = 0;
static HINSTANCE16 COMDLG32_hInstance16;
static DWORD COMDLG32_TlsIndex;
......@@ -78,7 +76,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
COMDLG32_hInstance = hInstance;
DisableThreadLibraryCalls(hInstance);
COMDLG32_hInstance16 = LoadLibrary16("commdlg.dll");
COMDLG32_TlsIndex = 0xffffffff;
SHELL32_hInstance = GetModuleHandleA("SHELL32.DLL");
......@@ -120,7 +117,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
case DLL_PROCESS_DETACH:
if (COMDLG32_TlsIndex != 0xffffffff) TlsFree(COMDLG32_TlsIndex);
if(COMDLG32_hInstance16) FreeLibrary16(COMDLG32_hInstance16);
if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment