bug #848173 - add trailing backslash to the temporary directory so root directories will be recognized as directories and not just the drive path.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3228 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-11-28 18:59:51 +00:00
parent f1a3a6746a
commit 0ec2d9c03e

View file

@ -54,6 +54,7 @@ char *ValidateTempDir()
validate_filename(state_temp_dir);
if (!validpathspec(state_temp_dir))
return NULL;
addtrailingslash(state_temp_dir);
CreateDirectory(state_temp_dir, NULL);
// g_caption is used as a temp var here
return my_GetTempFileName(g_caption, state_temp_dir);