aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index eaad69010f8..2b54f3d59dc 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -890,6 +890,7 @@ w32_get_resource (key, lpdwtype)
890 && (lpvalue = (LPBYTE) xmalloc (cbData)) != NULL 890 && (lpvalue = (LPBYTE) xmalloc (cbData)) != NULL
891 && RegQueryValueEx (hrootkey, key, NULL, lpdwtype, lpvalue, &cbData) == ERROR_SUCCESS) 891 && RegQueryValueEx (hrootkey, key, NULL, lpdwtype, lpvalue, &cbData) == ERROR_SUCCESS)
892 { 892 {
893 RegCloseKey (hrootkey);
893 return (lpvalue); 894 return (lpvalue);
894 } 895 }
895 896
@@ -906,6 +907,7 @@ w32_get_resource (key, lpdwtype)
906 && (lpvalue = (LPBYTE) xmalloc (cbData)) != NULL 907 && (lpvalue = (LPBYTE) xmalloc (cbData)) != NULL
907 && RegQueryValueEx (hrootkey, key, NULL, lpdwtype, lpvalue, &cbData) == ERROR_SUCCESS) 908 && RegQueryValueEx (hrootkey, key, NULL, lpdwtype, lpvalue, &cbData) == ERROR_SUCCESS)
908 { 909 {
910 RegCloseKey (hrootkey);
909 return (lpvalue); 911 return (lpvalue);
910 } 912 }
911 913