From 61cb6ca9fc84e8c02604c2bd6b7d3fc1f60455b4 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 18 Aug 2000 23:44:12 +0000 Subject: [PATCH] Fixed STATUS_GetTextW in regard to NULL pointers. --- dlls/comctl32/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index 42c9a681f14..00c25f92127 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -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;