projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf16395
)
- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.
author
Hartmut Birr
<osexpert@googlemail.com>
Sat, 8 Jan 2005 12:47:32 +0000
(12:47 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sat, 8 Jan 2005 12:47:32 +0000
(12:47 +0000)
svn path=/trunk/; revision=12886
reactos/lib/ntdll/rtl/path.c
patch
|
blob
|
history
diff --git
a/reactos/lib/ntdll/rtl/path.c
b/reactos/lib/ntdll/rtl/path.c
index
f9e03c4
..
3e60798
100644
(file)
--- a/
reactos/lib/ntdll/rtl/path.c
+++ b/
reactos/lib/ntdll/rtl/path.c
@@
-839,6
+839,12
@@
RtlDosPathNameToNtPathName_U(PWSTR dosname,
Length = wcslen(fullname + Offset);
memcpy (Buffer + tmpLength, fullname + Offset, (Length + 1) * sizeof(WCHAR));
Length += tmpLength;
+ if (Type == ABSOLUTE_DRIVE_PATH ||
+ Type == RELATIVE_DRIVE_PATH)
+ {
+ /* make the drive letter to uppercase */
+ Buffer[tmpLength] = towupper(Buffer[tmpLength]);
+ }
/* set NT filename */
ntname->Length = Length * sizeof(WCHAR);