1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

shell32: Try appending .exe when looking up an App Paths key.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51957
This commit is contained in:
Louis Lenders 2021-11-04 21:01:24 +11:00 committed by Alexandre Julliard
parent 50a1c5bc92
commit 4edfe426e4

View file

@ -464,7 +464,13 @@ static BOOL SHELL_TryAppPathW( LPCWSTR szName, LPWSTR lpResult, WCHAR **env)
wcscat(buffer, szName);
res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, buffer, 0, KEY_READ, &hkApp);
if (res) goto end;
if (res)
{
wcscat(buffer, L".exe");
res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, buffer, 0, KEY_READ, &hkApp);
}
if (res)
goto end;
len = MAX_PATH*sizeof(WCHAR);
res = RegQueryValueW(hkApp, NULL, lpResult, &len);