Module: wine Branch: master Commit: 5f4bb29232247fd12b44eaffcc396765d2953918 URL: https://gitlab.winehq.org/wine/wine/-/commit/5f4bb29232247fd12b44eaffcc39676...
Author: Alex Henrie alexhenrie24@gmail.com Date: Mon Jul 8 23:00:57 2024 -0600
windowscodecs: Use RegQueryValueExW in ComponentInfo_GetStringValue.
---
dlls/windowscodecs/info.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c index f42fc8932c9..67704365c06 100644 --- a/dlls/windowscodecs/info.c +++ b/dlls/windowscodecs/info.c @@ -50,8 +50,7 @@ static HRESULT ComponentInfo_GetStringValue(HKEY classkey, LPCWSTR value, if (!actual_size) return E_INVALIDARG;
- ret = RegGetValueW(classkey, NULL, value, RRF_RT_REG_SZ|RRF_NOEXPAND, NULL, - buffer, &cbdata); + ret = RegQueryValueExW(classkey, value, 0, NULL, (void *)buffer, &cbdata);
if (ret == ERROR_FILE_NOT_FOUND) {