From 35c097b44817ea373dba1c7a13cdce1b8f1889c3 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 2 May 2008 18:43:10 +0000 Subject: [PATCH] fixed bug #1955803 - SelectFileDialog returns stack garbage if user cancels git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5619 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/nsDialogs/browse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Contrib/nsDialogs/browse.c b/Contrib/nsDialogs/browse.c index 7fc6e49e..76336da9 100644 --- a/Contrib/nsDialogs/browse.c +++ b/Contrib/nsDialogs/browse.c @@ -146,6 +146,10 @@ void __declspec(dllexport) SelectFileDialog(HWND hwndParent, int string_size, ch pushstring(""); } } + else + { + pushstring(""); + } // restore working dir // OFN_NOCHANGEDIR doesn't always work (see MSDN)