diff options
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r-- | win/tkWinDialog.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 5be6776..f97d813 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -644,12 +644,7 @@ static void LoadShellProcs() if (shell32_handle != NULL) return; /* We have already been through here. */ - /* - * XXX - Note we never call FreeLibrary. There is no point because - * shell32.dll is loaded at startup anyways and stays for the duration - * of the process so why bother with keeping track of when to unload - */ - shell32_handle = LoadLibrary(TEXT("shell32.dll")); + shell32_handle = GetModuleHandle(TEXT("shell32.dll")); if (shell32_handle == NULL) /* Should never happen but check anyways. */ return; |