}
}
}
+ if (Path[2] == 0)
+ {
+ Path[2] = L'\\';
+ Path[3] = 0;
+ }
}
DPRINT ("RtlGetCurrentDirectory %lu %p\n", MaximumLength, Buffer);
- cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);\r
-
RtlAcquirePebLock();
+
+ cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);
Length = cd->DosPath.Length / sizeof(WCHAR);
if (cd->DosPath.Buffer[Length - 1] == L'\\' &&
cd->DosPath.Buffer[Length - 2] != L':')
DPRINT ("RtlSetCurrentDirectory %wZ\n", name);
RtlAcquirePebLock ();
- cd = (PCURDIR)&NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName;\r
+ cd = (PCURDIR)&NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName;
size = cd->DosPath.MaximumLength;
buf = RtlAllocateHeap (RtlGetProcessHeap(),
RtlAcquirePebLock();
- cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);\r
+ cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);
DPRINT("type %ld\n", type);
switch (type)
{
if (nah)
{
memset (nah, 0, sizeof(CURDIR));
- cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);\r
+ cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectoryName);
if (Type == 5 && cd->Handle &&
!_wcsnicmp (cd->DosPath.Buffer, fullname, cd->DosPath.Length / 2))
{