mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
Simplify code.
Spotted by Pablo Menichini, pablo at menichini dot com dot ar svn path=/trunk/; revision=29354
This commit is contained in:
parent
ba13c6e131
commit
c5921b158e
|
@ -79,12 +79,13 @@ GetSourcePaths(PUNICODE_STRING SourcePath,
|
|||
/* strip trailing directory */
|
||||
Ptr = wcsrchr(SourceName.Buffer, L'\\');
|
||||
if (Ptr)
|
||||
{
|
||||
RtlCreateUnicodeString(SourceRootDir, Ptr);
|
||||
*Ptr = 0;
|
||||
}
|
||||
else
|
||||
RtlCreateUnicodeString(SourceRootDir, L"");
|
||||
|
||||
if (Ptr != NULL)
|
||||
*Ptr = 0;
|
||||
RtlCreateUnicodeString(SourceRootPath,
|
||||
SourceName.Buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue