![]() |
#1 |
Junior Member
Join Date: Jun 2019
Posts: 8
|
System::Call, correct syntax for e option parameter.
Hello all,
today we had a user experiencing an uncommon problem, this call System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1) i.r2" fails. I copied the call from the usage examples and this it the first time we see it failing. I am trying to add ?e to get the result of getLastError on top of the stack, but all I get is the argument to System::Call. code: And here another doubt. If I am not wrong, I should allocate a buffer to receive the name. But in the example I see no statement for this allocation. What's wrong in my code? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
You should not allocate, t type uses the registers buffer directly.
What is the contents of $LAST_ERR_CODE? IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|