Bug 724283 - Building with NSIS 2.33u restricts installation on all service packs of Windows XP. r=rstrong

This commit is contained in:
Brian R. Bondy 2012-02-06 15:44:52 -05:00
Родитель 6a2896fba6
Коммит f30045a025
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -134,8 +134,11 @@
!insertmacro __WinVer_Call_GetVersionEx ${OSVERSIONINFOW_SIZE}
_winver_ex:
# get results from struct
System::Call '*$0(i.s,i.r1,i.r2,i.r3,i.s,&t128.s,&i2.s,&i2,&i2,&i1.s,&i1)'
# The original struct formatting string here was:
# '*$0(i.s,i.r1,i.r2,i.r3,i.s,&t128.s,&i2.s,&i2,&i2,&i1.s,&i1)'
# but in NSIS v2.33u strings take the size in bytes instead of size in chars
# so the 128 char '&t128.s' is changed here to '&t256.s'.
System::Call '*$0(i.s,i.r1,i.r2,i.r3,i.s,&t256.s,&i2.s,&i2,&i2,&i1.s,&i1)'
# free struct
System::Free $0