Commit 8b5291bc authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Pass RegQueryValueEx() the actual buffer size (Coverity).

parent 85e34436
......@@ -550,6 +550,7 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR highli
if (!valBuf)
goto done;
valSize = max_val_size;
if (RegQueryValueExW(hKey, NULL, NULL, &valType, valBuf, &valSize) == ERROR_FILE_NOT_FOUND) {
AddEntryToList(hwndLV, NULL, REG_SZ, NULL, 0, !highlightValue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment