From 628c166c144f29da3140003db2394b39dcd56f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 16 Jun 2003 13:43:16 +0000 Subject: [PATCH] Handle NULL window name svn path=/trunk/; revision=4898 --- reactos/subsys/win32k/ntuser/window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index ed48ab004c4..a302655a982 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: window.c,v 1.55 2003/06/15 04:25:34 rcampbell Exp $ +/* $Id: window.c,v 1.56 2003/06/16 13:43:16 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -473,7 +473,9 @@ NtUserCreateWindowEx(DWORD dwExStyle, W32kGuiCheck(); W32kGraphicsCheck(TRUE); - if (!RtlCreateUnicodeString(&WindowName, lpWindowName->Buffer)) + if (!RtlCreateUnicodeString(&WindowName, + NULL == lpWindowName->Buffer ? + L"" : lpWindowName->Buffer)) { SetLastNtError(STATUS_INSUFFICIENT_RESOURCES); return((HWND)0);