From b5df39999178499c5c5553f5d216a396d2fee62c Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 24 Apr 2007 16:16:05 +0000 Subject: [PATCH] restore fs redirection only if it was set in the first place git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5119 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Library/RegTool/RegTool.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Contrib/Library/RegTool/RegTool.c b/Contrib/Library/RegTool/RegTool.c index d873d06d..7c62d35d 100644 --- a/Contrib/Library/RegTool/RegTool.c +++ b/Contrib/Library/RegTool/RegTool.c @@ -163,11 +163,11 @@ void RunSelf(char cmd, char *file, int x64) CloseHandle(pi.hProcess); } - } - - if (x64) - { - SafeWow64EnableWow64FsRedirection(TRUE); + + if (x64) + { + SafeWow64EnableWow64FsRedirection(TRUE); + } } }