Prev Previous Post   Next Post Next
Old 23rd April 2007, 03:47   #1
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
WordFind bug

This is a function included with NSIS, but I'm not sure whether this would be considered a problem in NSIS or just the external function, so I'll report it here.

To Kichik:
If you feel this should be reported as a bug in NSIS, let me know.

Details
Here's the example code:
code:
OutFile "testme.exe"
ShowInstDetails show
!include WordFunc.nsh
!insertmacro WordFind
!define String "one|two|three|four|five"

Section
DetailPrint "String = ${String}"
DetailPrint '${WordFind} "${String}" "three" "#" $1'
${WordFind} "${String}" "three" "#" $1
DetailPrint "Answer: $1"
Strcpy $1 ""
DetailPrint "Example in manaual:"
DetailPrint '${WordFind} "C:\io.sys C:\logo.sys C:\WINDOWS" " C:\" "#" $1'
${WordFind} "C:\io.sys C:\logo.sys C:\WINDOWS" " C:\" "#" $1

DetailPrint "answer: $1"

SectionEnd



The answer for the first WordFind call returns 2, when it should only be 1. But, the function works fine when you are dealing with paths (from the 2nd WordFind call above)
Comperio is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump