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
This commit is contained in:
kichik 2008-05-02 18:43:10 +00:00
parent 8939702c68
commit 35c097b448

View file

@ -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)