Alexandre Julliard : comdlg32: Use PathAddBackslash to avoid a compiler warning.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 28 02:24:35 CDT 2014
Module: wine
Branch: master
Commit: 2b40148e1e73165ac0c85fd122657661cc103b83
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b40148e1e73165ac0c85fd122657661cc103b83
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 28 14:33:17 2014 +0900
comdlg32: Use PathAddBackslash to avoid a compiler warning.
---
dlls/comdlg32/filedlg.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index f76d01e..2738467 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -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);
More information about the wine-cvs
mailing list