Module: wine Branch: master Commit: 00759195ccd89b04679163545f9688bdd1c6a4cd URL: https://gitlab.winehq.org/wine/wine/-/commit/00759195ccd89b04679163545f9688b...
Author: Alex Henrie alexhenrie24@gmail.com Date: Tue Jul 2 23:40:00 2024 -0600
shell32: Pass size in bytes to RegGetValueW.
---
dlls/shell32/shfldr_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/shfldr_fs.c b/dlls/shell32/shfldr_fs.c index 928cadfc77c..bc3cb000f0e 100644 --- a/dlls/shell32/shfldr_fs.c +++ b/dlls/shell32/shfldr_fs.c @@ -588,7 +588,7 @@ static HRESULT SHELL32_CreateExtensionUIObject(IShellFolder2 *iface, IPersistFile *persist_file; char extensionA[20]; WCHAR extensionW[20], buf[MAX_PATH]; - DWORD size = MAX_PATH; + DWORD size = sizeof(buf); STRRET path; WCHAR *file; GUID guid;