From 1c86d55f2c1f28dbd861b6db43d92feba5ac07bf Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 19 Nov 2003 20:12:34 +0000 Subject: [PATCH] small bugfix svn path=/trunk/; revision=6714 --- reactos/apps/tests/dirdlg/dirdlg.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/reactos/apps/tests/dirdlg/dirdlg.c b/reactos/apps/tests/dirdlg/dirdlg.c index 8ec75679cc9..7ced633e670 100644 --- a/reactos/apps/tests/dirdlg/dirdlg.c +++ b/reactos/apps/tests/dirdlg/dirdlg.c @@ -57,12 +57,15 @@ DlgMainProc( { GetCurrentDirectory(MAX_PATH, selected); len = strlen(selected); - if(selected[len - 1] != '\\') + if(strlen(file)) { - lstrcat(selected, "\\"); + if(selected[len - 1] != '\\') + { + lstrcat(selected, "\\"); + } + lstrcat(selected, file); + EndDialog(hwndDlg, IDC_OK); } - lstrcat(selected, file); - EndDialog(hwndDlg, IDC_OK); } break; }