Hugh McMaster : regedit: Pass RegQueryValueEx() the actual buffer size ( Coverity).
Alexandre Julliard
julliard at winehq.org
Mon May 1 16:38:04 CDT 2017
Module: wine
Branch: master
Commit: 8b5291bca61322ddc74b2df04804fe3253efe71d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b5291bca61322ddc74b2df04804fe3253efe71d
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Mon May 1 09:30:31 2017 +0000
regedit: Pass RegQueryValueEx() the actual buffer size (Coverity).
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/regedit/listview.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index fc234d4..11147a7 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -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);
}
More information about the wine-cvs
mailing list