MAX_PATH is neither defined by ntddk.h nor by crt headers, use _MAX_PATH instead

svn path=/trunk/; revision=38031
This commit is contained in:
Timo Kreuzer 2008-12-12 19:06:57 +00:00
parent 3858e67cb6
commit 076f1a2735

View file

@ -68,7 +68,7 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField)
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 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField)
return(Status);
SourceName.Length = 0;
SourceName.MaximumLength = MAX_PATH * sizeof(WCHAR);
SourceName.MaximumLength = _MAX_PATH * sizeof(WCHAR);
SourceName.Buffer = SourceBuffer;
Status = ZwQuerySymbolicLinkObject(Handle,