[ros-diffs] [cwittich] 41598: fix crash while loading PowerPoint 2003 Viewer See issue #4624 for more details.

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Jun 24 21:53:07 CEST 2009


Author: cwittich
Date: Wed Jun 24 23:53:06 2009
New Revision: 41598

URL: http://svn.reactos.org/svn/reactos?rev=41598&view=rev
Log:
fix crash while loading PowerPoint 2003 Viewer
See issue #4624 for more details.

Modified:
    trunk/reactos/dll/win32/gdi32/objects/dc.c

Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/dc.c?rev=41598&r1=41597&r2=41598&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] Wed Jun 24 23:53:06 2009
@@ -36,7 +36,7 @@
  }
  else
  {
-    if (lpwszDevice) // First
+    if ((lpwszDevice) && (wcslen(lpwszDevice) != 0))  // First
     {
       if (!_wcsnicmp(lpwszDevice, L"\\\\.\\DISPLAY",11)) Display = TRUE;
       RtlInitUnicodeString(&Device, lpwszDevice);



More information about the Ros-diffs mailing list