Report errors on WinHelp() failures.

This commit is contained in:
Marcus Meissner 2000-10-29 01:17:24 +00:00 committed by Alexandre Julliard
parent c6c53cd935
commit 6f9c840ca0

View file

@ -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)