https://bugs.winehq.org/show_bug.cgi?id=46784
Bug ID: 46784 Summary: Broken wildcard expansion in FindFirstFile() and FindNextFile() Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: vaporeon@vaporeon.io Distribution: ---
On WINE, *.dll for example will be treated as *.dll* so any extension starting with .dll will be found, this does not happen on Windows.
https://bugs.winehq.org/show_bug.cgi?id=46784
Vaporeon vaporeon@vaporeon.io changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |4.3
https://bugs.winehq.org/show_bug.cgi?id=46784
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com Ever confirmed|0 |1 Status|UNCONFIRMED |NEEDINFO
--- Comment #1 from Damjan Jovanovic damjan.jov@gmail.com --- Wine 4.12.1
$ ls -la total 120 drwxr-xr-x 2 user user 7 Jul 13 08:13 . drwxr-xr-x 18 user user 31 Jul 13 07:28 .. -rw-r--r-- 1 user user 0 Jul 13 08:13 .js -rw-r--r-- 1 user user 0 Jul 13 07:58 a.js -rw-r--r-- 1 user user 0 Jul 13 07:58 b.json -rw-r--r-- 1 user user 343 Jul 13 08:04 scan.c -rwxr-xr-x 1 user user 95232 Jul 13 08:07 scan.exe
$ wine scan.exe '*.js' a.js
(.js and b.json don't match)
$ cat scan.c #include <windows.h> #include <stdio.h>
int main(int argc, char **argv) { HANDLE hFind; WIN32_FIND_DATA data;
hFind = FindFirstFileA(argv[1], &data);
if (hFind != INVALID_HANDLE_VALUE) { do { printf("%s\n", data.cFileName); } while (FindNextFile(hFind, &data)); FindClose(hFind); } }
The problem you described cannot be reproduced (any more?). If this is still a problem for you, please provide further info: filesystem used, exact directory contents, pattern used, etc.
https://bugs.winehq.org/show_bug.cgi?id=46784
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- I can't reproduce this either, not even even with wine-4.3 (the reported version).
Can we close this?