mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:52:56 +00:00
Fix mkdir command, if compiled in UNICODE. Patch by Pierre Schweitzer (heis_spiter at hotmail dot com)
See issue #2216 for more details. svn path=/trunk/; revision=26545
This commit is contained in:
parent
07a4c5d550
commit
253fa4b7a0
3 changed files with 6 additions and 4 deletions
|
@ -440,7 +440,7 @@ MakeFullPath(TCHAR * DirPath)
|
|||
while ((p = _tcschr(p, _T('\\'))) != NULL)
|
||||
{
|
||||
n = p - DirPath + 1;
|
||||
memcpy(path, DirPath, n);
|
||||
_tcsncpy(path, DirPath, n);
|
||||
path[n] = _T('\0');
|
||||
if( !CreateDirectory(path, NULL) &&
|
||||
(GetLastError() != ERROR_ALREADY_EXISTS))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue