comdlg32: Use PathAddBackslash to avoid a compiler warning.
This commit is contained in:
parent
c4747f46cf
commit
2b40148e1e
|
@ -1599,9 +1599,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
|
||||||
/* initdir does not have to be a directory. If a file is
|
/* initdir does not have to be a directory. If a file is
|
||||||
* specified, the dir part is taken */
|
* specified, the dir part is taken */
|
||||||
if( PathIsDirectoryW(tmpBuf)) {
|
if( PathIsDirectoryW(tmpBuf)) {
|
||||||
if (tmpBuf[lstrlenW(tmpBuf)-1] != '\\') {
|
PathAddBackslashW( tmpBuf );
|
||||||
lstrcatW(tmpBuf, szwSlash);
|
|
||||||
}
|
|
||||||
lstrcatW(tmpBuf, szwStar);
|
lstrcatW(tmpBuf, szwStar);
|
||||||
}
|
}
|
||||||
result = GetFullPathNameW(tmpBuf, MAX_PATH, tmpBuf2, &nameBit);
|
result = GetFullPathNameW(tmpBuf, MAX_PATH, tmpBuf2, &nameBit);
|
||||||
|
|
Loading…
Reference in New Issue