From 9fdd4fbfc0a9caa70714d3d98e71d2ac7b97441c Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 8 Apr 2005 17:41:22 +0000 Subject: [PATCH] fixed bug #1073792 - RMDir /REBOOTOK sets reboot flag when folder doesn't exist git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3958 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 79358ad9..380daeb6 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -180,7 +180,7 @@ void NSISCALL myDelete(char *buf, int flags) } #ifdef NSIS_SUPPORT_RMDIR - if (valid_dir && (flags & DEL_DIR)) + if (valid_dir && (flags & DEL_DIR) && file_exists(buf)) { addtrailingslash(buf); log_printf2("RMDir: RemoveDirectory(\"%s\")",buf);