From 96327d23351519bc29491e51d691ffdea8fcb5c5 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 29 Nov 2008 12:23:59 +0000 Subject: [PATCH] remove some code duplication git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5796 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/Tests/winver.nsi | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Source/Tests/winver.nsi b/Source/Tests/winver.nsi index 8b49de48..444a7e5c 100644 --- a/Source/Tests/winver.nsi +++ b/Source/Tests/winver.nsi @@ -17,6 +17,8 @@ # # Function PrintSysVersion # +# System::Alloc $1 +# Pop $0 # System::Call *$0(ir1) # System::Call kernel32::GetVersionEx(ir0)i.R0 # @@ -41,34 +43,26 @@ # # DetailPrint $R3 # +# System::Free $0 +# # FunctionEnd # # Section # -# System::Alloc 156 -# Pop $0 -# # DetailPrint "# OSVERSIONINFOEX" # -# StrCpy $2 "$$OSVERSIONINFOEX" # StrCpy $1 156 +# StrCpy $2 "$$OSVERSIONINFOEX" # Call PrintSysVersion # -# System::Free $0 -# # DetailPrint "" # -# System::Alloc 156 -# Pop $0 -# # DetailPrint "# OSVERSIONINFO" # -# StrCpy $2 "$$OSVERSIONINFO" # StrCpy $1 148 +# StrCpy $2 "$$OSVERSIONINFO" # Call PrintSysVersion # -# System::Free $0 -# # SectionEnd # #