Commit 6f9c840c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Report errors on WinHelp() failures.

parent c6c53cd9
...@@ -77,8 +77,14 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, ...@@ -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, ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment