From f1a3a6746a90ea124531371a057d9fc8fd6acdc1 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 28 Nov 2003 18:52:19 +0000 Subject: [PATCH] Made temporary folder validator make sure the temporary directory variable contains a fully qualified path. If it doesn't it'll full back to %WINDIR%\Temp. If that doesn't either, it'll fail. This shoulf fix bug #848173 where it would fail with the wrong message on WINE. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3227 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/exehead/Main.c b/Source/exehead/Main.c index 27e7d5d3..f7d560ed 100644 --- a/Source/exehead/Main.c +++ b/Source/exehead/Main.c @@ -52,6 +52,8 @@ HANDLE g_hInstance; char *ValidateTempDir() { validate_filename(state_temp_dir); + if (!validpathspec(state_temp_dir)) + return NULL; CreateDirectory(state_temp_dir, NULL); // g_caption is used as a temp var here return my_GetTempFileName(g_caption, state_temp_dir);