WinHelp must accept a NULL pointer to the help key string.

This commit is contained in:
Rein Klazes 2000-04-29 14:15:11 +00:00 committed by Alexandre Julliard
parent 68e0d64d66
commit ba2c8d49f5
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
case HELP_KEY:
case HELP_PARTIALKEY:
case HELP_COMMAND:
dsize = strlen( (LPSTR)dwData )+1;
dsize = dwData ? strlen( (LPSTR)dwData )+1: 0;
break;
case HELP_MULTIKEY:
dsize = ((LPMULTIKEYHELP)dwData)->mkSize;