projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba13c6e
)
Simplify code.
author
Hervé Poussineau
<hpoussin@reactos.org>
Tue, 2 Oct 2007 14:38:14 +0000
(14:38 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Tue, 2 Oct 2007 14:38:14 +0000
(14:38 +0000)
Spotted by Pablo Menichini, pablo at menichini dot com dot ar
svn path=/trunk/; revision=29354
reactos/base/setup/usetup/drivesup.c
patch
|
blob
|
history
diff --git
a/reactos/base/setup/usetup/drivesup.c
b/reactos/base/setup/usetup/drivesup.c
index
ad5d205
..
5614f89
100644
(file)
--- a/
reactos/base/setup/usetup/drivesup.c
+++ b/
reactos/base/setup/usetup/drivesup.c
@@
-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);
}