Commit 2b40148e authored by Alexandre Julliard's avatar Alexandre Julliard

comdlg32: Use PathAddBackslash to avoid a compiler warning.

parent c4747f46
...@@ -1599,9 +1599,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment