mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 03:53:38 +00:00
Fixed MessageBox() usage.
This commit is contained in:
parent
482122a1de
commit
1081dfee33
|
@ -56,7 +56,7 @@ void WINAPI RunFileDlg(
|
||||||
void WINAPI ExitWindowsDialog (HWND hWndOwner)
|
void WINAPI ExitWindowsDialog (HWND hWndOwner)
|
||||||
{
|
{
|
||||||
TRACE("(0x%08x)\n", hWndOwner);
|
TRACE("(0x%08x)\n", hWndOwner);
|
||||||
if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDOK)
|
if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDYES)
|
||||||
{
|
{
|
||||||
SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
|
SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ int AlertFileNotSaved(LPSTR szFileName) {
|
||||||
LoadString(Globals.hInstance, IDS_ERROR, szRessource, sizeof(szRessource));
|
LoadString(Globals.hInstance, IDS_ERROR, szRessource, sizeof(szRessource));
|
||||||
|
|
||||||
/* Display modal */
|
/* Display modal */
|
||||||
nResult = MessageBox(Globals.hMainWnd, szMessage, szRessource, MB_ICONEXCLAMATION + MB_YESNOCANCEL);
|
nResult = MessageBox(Globals.hMainWnd, szMessage, szRessource, MB_ICONEXCLAMATION|MB_YESNOCANCEL);
|
||||||
return(nResult);
|
return(nResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue