comdlg32: Use PathAddBackslash to avoid a compiler warning.

This commit is contained in:
Alexandre Julliard 2014-10-28 14:33:17 +09:00
parent c4747f46cf
commit 2b40148e1e
1 changed files with 1 additions and 3 deletions

View File

@ -1599,9 +1599,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
/* initdir does not have to be a directory. If a file is
* specified, the dir part is taken */
if( PathIsDirectoryW(tmpBuf)) {
if (tmpBuf[lstrlenW(tmpBuf)-1] != '\\') {
lstrcatW(tmpBuf, szwSlash);
}
PathAddBackslashW( tmpBuf );
lstrcatW(tmpBuf, szwStar);
}
result = GetFullPathNameW(tmpBuf, MAX_PATH, tmpBuf2, &nameBit);