From ba2c8d49f5c0eb549b8b52b64cb932d48f009d9c Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Sat, 29 Apr 2000 14:15:11 +0000 Subject: [PATCH] WinHelp must accept a NULL pointer to the help key string. --- windows/winhelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winhelp.c b/windows/winhelp.c index 431f796c869..31a9afa41ca 100644 --- a/windows/winhelp.c +++ b/windows/winhelp.c @@ -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;