Menu

#404 File /nonfatal line not seen by relative jumps

2.0 Series
closed-fixed
Scripting (211)
5
2005-12-31
2005-09-22
Anonymous
No

Per http://forums.winamp.com/showthread.php?
postid=1775227#post1775227 , logging bug.

If the /nonfatal switch (for the command: File) is
activated or invoked (no files found), the line will not be
seen as a run-time instruction and will not be counted
by Relative Jumps.

Compile the below code with and without test.txt in the
local nsi directory, and you will see.

Thanks so much.
Jnuw

Name "FileNonfatal"
OutFile FileNonfatal.exe
ShowInstDetails show

Section ""
MessageBox MB_OK "Start of Section"
Goto +2
File /nonfatal /oname=$PLUGINSDIR\test.txt "test.txt"
MessageBox MB_OK "1 line after File /nonfatal...
command"
MessageBox MB_OK "2 lines after File /nonfatal...
command"
SectionEnd

Discussion

  • Amir Szekely

    Amir Szekely - 2005-12-31

    Logged In: YES
    user_id=584402

    Thanks, fixed.

    I can't say it's the ideal solution, but I've made it add a
    NOP opcode if no files were found. This way, it'll always
    have something to skip.

     
  • Amir Szekely

    Amir Szekely - 2005-12-31
    • labels: 732400 --> Scripting
    • status: open --> closed-fixed
     

Log in to post a comment.