[RTL]: Makes sure there is a curdir handle.

svn path=/trunk/; revision=52728
This commit is contained in:
Alex Ionescu 2011-07-18 13:46:43 +00:00
parent 16163bbc4a
commit 1fdc23fa32

View file

@ -593,6 +593,8 @@ RtlpDosPathNameToRelativeNtPathName_Ustr(IN BOOLEAN HaveRelative,
PCURDIR cd;
UNICODE_STRING us;
cd = (PCURDIR)&(NtCurrentPeb ()->ProcessParameters->CurrentDirectory.DosPath);
if (cd->Handle)
{
RtlInitUnicodeString(&us, Buffer);
if (RtlEqualUnicodeString(&us, &cd->DosPath, TRUE))
{
@ -604,6 +606,7 @@ RtlpDosPathNameToRelativeNtPathName_Ustr(IN BOOLEAN HaveRelative,
}
}
}
}
/* Done */
RtlReleasePebLock();