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
This commit is contained in:
kichik 2003-11-28 18:52:19 +00:00
parent 8b728af443
commit f1a3a6746a

View file

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