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:
parent
f1a3a6746a
commit
0ec2d9c03e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue