[ros-diffs] [pschweitzer] 54458: [NTOSKNRL] Properly check for string

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sun Nov 20 16:39:32 UTC 2011


Author: pschweitzer
Date: Sun Nov 20 16:39:31 2011
New Revision: 54458

URL: http://svn.reactos.org/svn/reactos?rev=54458&view=rev
Log:
[NTOSKNRL]
Properly check for string

Modified:
    trunk/reactos/ntoskrnl/config/i386/cmhardwr.c

Modified: trunk/reactos/ntoskrnl/config/i386/cmhardwr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/i386/cmhardwr.c?rev=54458&r1=54457&r2=54458&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/config/i386/cmhardwr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/i386/cmhardwr.c [iso-8859-1] Sun Nov 20 16:39:31 2011
@@ -478,7 +478,7 @@
                 }
 
                 /* Check if we had a Vendor ID */
-                if (Prcb->VendorString)
+                if (Prcb->VendorString[0])
                 {
                     /* Convert it to Unicode */
                     RtlInitAnsiString(&TempString, Prcb->VendorString);




More information about the Ros-diffs mailing list