mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
[KERNEL32]
Daniel Zimmerman: Update GetShortPathNameW to Wine See issue #4553 for more details. svn path=/trunk/; revision=46850
This commit is contained in:
parent
8b6a58978f
commit
c85b9b7fad
1 changed files with 2 additions and 2 deletions
|
@ -741,7 +741,7 @@ GetShortPathNameW (
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check for drive letter */
|
/* check for drive letter */
|
||||||
if (longpath[1] == ':' )
|
if (longpath[0] != '/' && longpath[1] == ':' )
|
||||||
{
|
{
|
||||||
tmpshortpath[0] = longpath[0];
|
tmpshortpath[0] = longpath[0];
|
||||||
tmpshortpath[1] = ':';
|
tmpshortpath[1] = ':';
|
||||||
|
@ -772,7 +772,7 @@ GetShortPathNameW (
|
||||||
tmplen = p - (longpath + lp);
|
tmplen = p - (longpath + lp);
|
||||||
lstrcpynW(tmpshortpath + sp, longpath + lp, tmplen + 1);
|
lstrcpynW(tmpshortpath + sp, longpath + lp, tmplen + 1);
|
||||||
/* Check, if the current element is a valid dos name */
|
/* Check, if the current element is a valid dos name */
|
||||||
if (tmplen <= 8+1+3+1)
|
if (tmplen <= 8+1+3)
|
||||||
{
|
{
|
||||||
BOOLEAN spaces;
|
BOOLEAN spaces;
|
||||||
memcpy(ustr_buf, longpath + lp, tmplen * sizeof(WCHAR));
|
memcpy(ustr_buf, longpath + lp, tmplen * sizeof(WCHAR));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue