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:
parent
50a1c5bc92
commit
4edfe426e4
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue