win32: use full path when registering default icon

This commit is contained in:
OV2 2018-03-31 16:03:49 +02:00
parent 5a0f00518a
commit bdade06dff
1 changed files with 1 additions and 1 deletions

View File

@ -6909,7 +6909,7 @@ bool RegisterProgid() {
_stprintf_s(szRegKey,PATH_MAX-1,TEXT("Software\\Classes\\%s\\DefaultIcon"),SNES9XWPROGID);
REGCREATEKEY(HKEY_CURRENT_USER,szRegKey)
_stprintf_s(szRegKey,PATH_MAX-1,TEXT("%s,0"),szExeName);
_stprintf_s(szRegKey,PATH_MAX-1,TEXT("%s,0"), szExePath);
REGSETVALUE(hKey,NULL,REG_SZ,szRegKey,(lstrlen(szRegKey) + 1) * sizeof(TCHAR))
RegCloseKey(hKey);