This commit is contained in:
love-code-yeyixiao 2024-05-18 10:55:51 +08:00
parent 06cde1cd04
commit d36f26fdd5
1 changed files with 2 additions and 2 deletions

View File

@ -1896,7 +1896,7 @@ int __stdcall WinMainCRTStartup(
if (SbieApi_QueryConfBool(BoxName, L"AlertBeforeStart", FALSE)) {
WCHAR* tips;
wprintf(SbieDll_FormatMessage0(3198), BoxName);
if (MessageBox(NULL, tips, L"Sandboxie Start", MB_YESNO) == IDNO)
if (MessageBoxW(NULL, tips, L"Sandboxie Start", MB_YESNO) == IDNO)
die(10000);
else {
DWORD error;
@ -1905,7 +1905,7 @@ int __stdcall WinMainCRTStartup(
WCHAR dir[1020] = L"";
SbieApi_GetHomePath(NULL, 0, dir, 1020);
if (wcsstr(buf, dir) == NULL)
if (MessageBox(NULL, SbieDll_FormatMessage0(3199), L"Warn", MB_YESNO) == IDNO)
if (MessageBoxW(NULL, SbieDll_FormatMessage0(3199), L"Warn", MB_YESNO) == IDNO)
die(10000);
}
}