| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a16ccc commit c7e57f5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ static ares_bool_t get_REG_SZ(HKEY hKey, const WCHAR *leafKeyName, char **outptr | |||
| 106 | 106 | ||
| 107 | 107 | /* Get the value for real */ | |
| 108 | 108 | res = RegQueryValueExW(hKey, leafKeyName, 0, NULL, (BYTE *)val, &size); | |
| 109 | - if (res != ERROR_SUCCESS || size == 1) { | ||
| 109 | + if (res != ERROR_SUCCESS || size == sizeof(WCHAR)) { | ||
| 110 | 110 | ares_free(val); | |
| 111 | 111 | return ARES_FALSE; | |
| 112 | 112 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments