TcMatch.dll - MatchGetSetOptions

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

TcMatch.dll - MatchGetSetOptions

Post by *Samuel »

The function "MatchGetSetOptions" works for every call of "MatchFileW" but the first one after loading "tcmatch.dll"

First call of "MatchFileW" is always the current file.
Example of function calls:

Code: Select all

MatchGetSetOptions(0,0) -> 7;
MatchFileW("b.txt","t*");
MatchFileW("C:\example path\a.txt","t");
MatchFileW("C:\example path\b.txt","t");
MatchFileW("C:\example path\c.txt","t");

MatchFileW("C:\example path\b.txt","tx");
MatchFileW("C:\example path\a.txt","tx");
MatchFileW("C:\example path\b.txt","tx");
MatchFileW("C:\example path\c.txt","tx");
Should be:

Code: Select all

MatchGetSetOptions(0,0) -> 7;
MatchFileW("C:\example path\b.txt","t");
MatchFileW("C:\example path\a.txt","t");
MatchFileW("C:\example path\b.txt","t");
MatchFileW("C:\example path\c.txt","t");

MatchFileW("C:\example path\b.txt","tx");
MatchFileW("C:\example path\a.txt","tx");
MatchFileW("C:\example path\b.txt","tx");
MatchFileW("C:\example path\c.txt","tx");
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm that, thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Confirm the fix. Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for finding it!
Author of Total Commander
https://www.ghisler.com
Post Reply