From 2b40148e1e73165ac0c85fd122657661cc103b83 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 28 Oct 2014 14:33:17 +0900 Subject: [PATCH] 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 f76d01e8a28..2738467ae2f 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);