mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[USETUP]
Check RtlCreateUnicodeString in SetupCreateSingleDirectory. Patch by Victor Martinez. CORE-10647 #resolve #comment Thanks a lot! svn path=/trunk/; revision=70321
This commit is contained in:
parent
f7500c28d1
commit
d8e9559dd9
|
@ -48,8 +48,9 @@ SetupCreateSingleDirectory(
|
|||
HANDLE DirectoryHandle;
|
||||
NTSTATUS Status;
|
||||
|
||||
RtlCreateUnicodeString(&PathName,
|
||||
DirectoryName);
|
||||
if(!RtlCreateUnicodeString(&PathName, DirectoryName))
|
||||
return STATUS_NO_MEMORY;
|
||||
|
||||
if (PathName.Length > sizeof(WCHAR) &&
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR) - 2] == L'\\' &&
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR) - 1] == L'.')
|
||||
|
|
Loading…
Reference in a new issue