Fixed STATUS_GetTextW in regard to NULL pointers.

This commit is contained in:
Marcus Meissner 2000-08-18 23:44:12 +00:00 committed by Alexandre Julliard
parent 5138a35295
commit 61cb6ca9fc
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ STATUSBAR_GetTextW (HWND hwnd, WPARAM wParam, LPARAM lParam)
else {
result = part->text ? lstrlenW (part->text) : 0;
result |= (part->style << 16);
if (lParam)
if (part->text && lParam)
strcpyW ((LPWSTR)lParam, part->text);
}
return result;