https://bugs.winehq.org/show_bug.cgi?id=47833
Bug ID: 47833 Summary: FindFirstFileExW seems to be missing FILE_OPEN_FOR_BACKUP_INTENT flag to NtOpenFile Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: qsniyg@mail.com Distribution: ---
When running USVFS (through ModOrganizer 2), its hooked version of NtOpenFile checks for the FILE_OPEN_FOR_BACKUP_INTENT flag to see if the function calling it is FindFirstFileExW.
Under Windows, this apparently works as expected, but wine doesn't pass the flag, causing USVFS to fail injecting directory listings. Adding the flag allows USVFS to work properly.
I haven't tested this under windows, so I have no way to verify if the flag only gets set for some arguments sent to FindFirstFileExW and not others, but since USVFS has been known to work for many different programs, I would personally assume that the flag is always set.