mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 10:26:33 +00:00
Report errors on WinHelp() failures.
This commit is contained in:
parent
c6c53cd935
commit
6f9c840ca0
|
@ -77,8 +77,14 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
|
||||||
hDest = FindWindowA( "MS_WINHELP", NULL );
|
hDest = FindWindowA( "MS_WINHELP", NULL );
|
||||||
if(!hDest) {
|
if(!hDest) {
|
||||||
if(wCommand == HELP_QUIT) return TRUE;
|
if(wCommand == HELP_QUIT) return TRUE;
|
||||||
if (WinExec ( "winhlp32.exe -x", SW_SHOWNORMAL ) < 32) return FALSE;
|
if (WinExec ( "winhlp32.exe -x", SW_SHOWNORMAL ) < 32) {
|
||||||
if ( ! ( hDest = FindWindowA ( "MS_WINHELP", NULL ) )) return FALSE;
|
FIXME("cant start winhlp32.exe -x?\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if ( ! ( hDest = FindWindowA ( "MS_WINHELP", NULL ) )) {
|
||||||
|
FIXME("did not find MS_WINHELP\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -106,7 +112,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
|
||||||
dsize = ((LPHELPWININFOA)dwData)->wStructSize;
|
dsize = ((LPHELPWININFOA)dwData)->wStructSize;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("Unknown help command %d\n",wCommand);
|
FIXME("Unknown help command %d\n",wCommand);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if(lpHelpFile)
|
if(lpHelpFile)
|
||||||
|
|
Loading…
Reference in a new issue