[ros-diffs] [tkreuzer] 38031: MAX_PATH is neither defined by ntddk.h nor by crt headers, use _MAX_PATH instead

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Dec 12 20:06:57 CET 2008


Author: tkreuzer
Date: Fri Dec 12 13:06:57 2008
New Revision: 38031

URL: http://svn.reactos.org/svn/reactos?rev=38031&view=rev
Log:
MAX_PATH is neither defined by ntddk.h nor by crt headers, use _MAX_PATH instead

Modified:
    trunk/reactos/drivers/setup/blue/font.c

Modified: trunk/reactos/drivers/setup/blue/font.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/setup/blue/font.c?rev=38031&r1=38030&r2=38031&view=diff
==============================================================================
--- trunk/reactos/drivers/setup/blue/font.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/setup/blue/font.c [iso-8859-1] Fri Dec 12 13:06:57 2008
@@ -68,7 +68,7 @@
     CFFILE             CabFile;
     ULONG              CabFileOffset = 0;
     LARGE_INTEGER      ByteOffset;
-    WCHAR              SourceBuffer[MAX_PATH] = {L'\0'};
+    WCHAR              SourceBuffer[_MAX_PATH] = {L'\0'};
 
     if(KeGetCurrentIrql() != PASSIVE_LEVEL)
         return STATUS_INVALID_DEVICE_STATE;
@@ -90,7 +90,7 @@
         return(Status);
 
     SourceName.Length = 0;
-    SourceName.MaximumLength = MAX_PATH * sizeof(WCHAR);
+    SourceName.MaximumLength = _MAX_PATH * sizeof(WCHAR);
     SourceName.Buffer = SourceBuffer;
 
     Status = ZwQuerySymbolicLinkObject(Handle,



More information about the Ros-diffs mailing list