summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-27 11:12:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-27 11:12:01 (GMT)
commitc7c7d22777da93312e8351f289c0eae3253889c7 (patch)
tree0c6af3e83a24e865135704b4e3aaf230c769b3de /win/tkWinDialog.c
parent1a9ed03cff3ca2e3ce2fba690a478d0651c55d12 (diff)
downloadtk-c7c7d22777da93312e8351f289c0eae3253889c7.zip
tk-c7c7d22777da93312e8351f289c0eae3253889c7.tar.gz
tk-c7c7d22777da93312e8351f289c0eae3253889c7.tar.bz2
tkWinDialog.c: Change a LoadLibrary() call to GetModuleHandle(), since "shell32.dll" is already linked to Tk.
Also various whitespace changes (mainly at line-ends) and comment fixes. Nothing functional.
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c7
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;