Commit 61cb6ca9 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed STATUS_GetTextW in regard to NULL pointers.

parent 5138a352
......@@ -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;
......
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