From 274cdd5ac95c811ad6f225a4c0fb12c1c930c332 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 15 Aug 2008 19:54:38 +0000 Subject: [PATCH] use System's r1 instead of $1 git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5704 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/WinVer.nsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/WinVer.nsh b/Include/WinVer.nsh index 7b91bae5..bd71fa99 100644 --- a/Include/WinVer.nsh +++ b/Include/WinVer.nsh @@ -173,7 +173,7 @@ ; ($1)->dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXA) System::Call /NOUNLOAD '*$1(&i4 156)' ; GetVersionEx($1) - System::Call /NOUNLOAD 'kernel32::GetVersionEx(i $1) i.r0' + System::Call /NOUNLOAD 'kernel32::GetVersionEx(i r1) i.r0' ${If} $0 <> 0 ; $2 = ($1)->wServicePackMajor System::Call /NOUNLOAD '*$1(&t148, &i2.r2)' @@ -181,7 +181,7 @@ ; ($1)->dwOSVersionInfoSize = sizeof(OSVERSIONINFOA) System::Call /NOUNLOAD '*$1(&i4 148)' ; GetVersionEx($1) - System::Call /NOUNLOAD 'kernel32::GetVersionEx(i $1) i.r0' + System::Call /NOUNLOAD 'kernel32::GetVersionEx(i r1) i.r0' ${If} $0 <> 0 ; $2 = ($1)->szCSDVersion System::Call /NOUNLOAD '*$1(&t20, &t128.r2)'