fix crash while loading PowerPoint 2003 Viewer

See issue #4624 for more details.

svn path=/trunk/; revision=41598
This commit is contained in:
Christoph von Wittich
2009-06-24 19:53:06 +00:00
parent de0a0cf543
commit b1dcc588eb
+1 -1
View File
@@ -36,7 +36,7 @@ IntCreateDICW ( LPCWSTR lpwszDriver,
}
else
{
if (lpwszDevice) // First
if ((lpwszDevice) && (wcslen(lpwszDevice) != 0)) // First
{
if (!_wcsnicmp(lpwszDevice, L"\\\\.\\DISPLAY",11)) Display = TRUE;
RtlInitUnicodeString(&Device, lpwszDevice);