Index: dll/win32/shell32/shlexec.cpp =================================================================== --- dll/win32/shell32/shlexec.cpp (revision 73093) +++ dll/win32/shell32/shlexec.cpp (working copy) @@ -575,6 +575,11 @@ if (env) *env = NULL; wcscpy(buffer, L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\"); wcscat(buffer, szName); + // Add ".exe" extension before search if missing. Buffer is always greater than 4, length check is ignored + if(!wcscmp(buffer + wcslen(buffer) - 4, wszExe)) + { + wcscat(buffer, wszExe); + } res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, buffer, 0, KEY_READ, &hkApp); if (res) goto end;