Skip to content

Fix FindStringIndex native not returning INVALID_STRING_INDEX when string not found (bug 6144).#40

Merged
psychonic merged 1 commit intomasterfrom
fix-invalid-string-index
Jun 19, 2014
Merged

Fix FindStringIndex native not returning INVALID_STRING_INDEX when string not found (bug 6144).#40
psychonic merged 1 commit intomasterfrom
fix-invalid-string-index

Conversation

@psychonic
Copy link
Member

This should resolve bug 6144. The SP definition of INVALID_STRING_INDEX in sdktools_stringtables.inc doesn't match the sdk version. (-1 and 65535 respectively).

Updating the define in the SP inc file to be "correct" would cause plugins to need to be recompiled to get the fix. Instead, I've updated the only native that uses this to return the value that plugins are expecting.

@TheDS
Copy link
Member

TheDS commented Jun 19, 2014

🚢

psychonic added a commit that referenced this pull request Jun 19, 2014
Fix FindStringIndex native not returning INVALID_STRING_INDEX when string not found (bug 6144, r=DS).
@psychonic psychonic merged commit 58158ce into master Jun 19, 2014
@psychonic psychonic deleted the fix-invalid-string-index branch June 19, 2014 18:40
dvander added a commit that referenced this pull request Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants