git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4050980
)
expand-strings-20041012
author
Jeffrey Altman
<jaltman@mit.edu>
Wed, 13 Oct 2004 07:41:38 +0000 (07:41 +0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Wed, 13 Oct 2004 07:41:38 +0000 (07:41 +0000)
Stop blowing away the drive mappings of REG_EXPAND_SZ values due to
the use of the incorrect order of the parameters
src/WINNT/client_config/drivemap.cpp
patch
|
blob
|
history
diff --git
a/src/WINNT/client_config/drivemap.cpp
b/src/WINNT/client_config/drivemap.cpp
index
9716c4a
..
5305f3c
100644
(file)
--- a/
src/WINNT/client_config/drivemap.cpp
+++ b/
src/WINNT/client_config/drivemap.cpp
@@
-523,7
+523,7
@@
void QueryDriveMapList_ReadMappings (PDRIVEMAPLIST pList)
&dwType, (LPBYTE)mapping, &mappingLen);
if ( dwType == REG_EXPAND_SZ ) {
TCHAR buf[MAX_PATH];
- DWORD dummyLen = ExpandEnvironmentStrings(buf, mapping, MAX_PATH);
+ DWORD dummyLen = ExpandEnvironmentStrings(mapping, buf, MAX_PATH);
if (dummyLen > MAX_PATH)
continue;
_tcsncpy(mapping, buf, MAX_PATH);