diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-03 15:28:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-03 15:28:37 (GMT) |
commit | d2f034e206d0c76548eb7ddc4f23ed18bc6ce26c (patch) | |
tree | 02ae316b20d098b42b3de470a0d5a895b3ab2ad5 /win/tclWinReg.c | |
parent | 126d43773ca468803c238c2deb4c947f80f4f68d (diff) | |
parent | d329be0030f6800be40dc3606491b8880814d336 (diff) | |
download | tcl-d2f034e206d0c76548eb7ddc4f23ed18bc6ce26c.zip tcl-d2f034e206d0c76548eb7ddc4f23ed18bc6ce26c.tar.gz tcl-d2f034e206d0c76548eb7ddc4f23ed18bc6ce26c.tar.bz2 |
merge core-8-6-branch
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r-- | win/tclWinReg.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c index 5f7fd31..de48b9b 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -1197,14 +1197,12 @@ RecursiveDeleteKey( */ if (mode && !checkExProc) { - HINSTANCE dllH; + HMODULE handle; checkExProc = 1; - dllH = LoadLibrary(TEXT("advapi32.dll")); - if (dllH) { - regDeleteKeyExProc = (FARPROC) - GetProcAddress(dllH, "RegDeleteKeyExW"); - } + handle = GetModuleHandle(TEXT("ADVAPI32")); + regDeleteKeyExProc = (FARPROC) + GetProcAddress(handle, "RegDeleteKeyExW"); } if (mode && regDeleteKeyExProc) { result = regDeleteKeyExProc(startKey, keyName, mode, 0); |