Fixed STATUS_GetTextW in regard to NULL pointers.
This commit is contained in:
parent
5138a35295
commit
61cb6ca9fc
|
@ -422,7 +422,7 @@ STATUSBAR_GetTextW (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
else {
|
else {
|
||||||
result = part->text ? lstrlenW (part->text) : 0;
|
result = part->text ? lstrlenW (part->text) : 0;
|
||||||
result |= (part->style << 16);
|
result |= (part->style << 16);
|
||||||
if (lParam)
|
if (part->text && lParam)
|
||||||
strcpyW ((LPWSTR)lParam, part->text);
|
strcpyW ((LPWSTR)lParam, part->text);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue