[Bug 35121] FotoQuelle Fotosoftware v4.13 fails to start with WinVer set to 'Windows 7' (FindFirstFileExW with unsupported additional flags FIND_FIRST_EX_LARGE_FETCH)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Dec 14 15:22:28 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=35121

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|-unknown                    |kernel32
            Summary|FotoQuelle Fotosoftware     |FotoQuelle Fotosoftware
                   |v4.13 fails to start        |v4.13 fails to start with
                   |                            |WinVer set to 'Windows 7'
                   |                            |(FindFirstFileExW with
                   |                            |unsupported additional
                   |                            |flags
                   |                            |FIND_FIRST_EX_LARGE_FETCH)
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #5 from Anastasius Focht <focht at gmx.net> ---
Hello Christoph

--- quote ---
but I set the windows version to Windows 7 and then this error occurs. With
Windows XP as version it runs great.

Is this a wine bug? Can you please test it?
--- quote ---

yes it's a Wine insufficiency.

Please _always_ tell what kind of changes you did on the default WINEPREFIX.
We don't have a magic crystal ball here to guess what might be wrong ...
especially if you leave out such important details.

In general please avoid 'tweaking' WINEPREFIX if you don't know about the
technical implications.
Setting higher Windows version doesn't automatically mean 'better'.
In general it tends to be worse due to various missing API in Wine.
Only set the Windows version if the installer or the application _explicitly_
states it (and refuses to install/start otherwise).

Anyway, the app uses a different mechanism when looking for plugins on startup
when being run with WinVer set to 'Windows 7'.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/FotoQuelle Fotosoftware

$ WINEDEBUG=+tid,+seh,+relay wine ./FotoQuelle.exe >>log.txt 2>&1
...
0024:Call KERNEL32.FindFirstFileExW(005399aa L"\\\\?\\C:\\Program
Files\\FotoQuelle
Fotosoftware\\Plugins\\main\\*",00000001,0033f88c,00000000,00000000,00000002)
ret=670e807c
0024:fixme:file:FindFirstFileExW options not implemented 0x00000000 0x00000002
0024:Ret  KERNEL32.FindFirstFileExW() retval=ffffffff ret=670e807c
...
0024:Call KERNEL32.OutputDebugStringW(00539d32
L"ETEPhotoLauncher::ephotoInterface --- FATAL: No ETEPhoto plugin found here:
C:/Program Files/FotoQuelle Fotosoftware/Plugins/main.\n") ret=671234a3
0024:Ret  KERNEL32.OutputDebugStringW() retval=0033fab0 ret=671234a3
...
0024:Call user32.SetWindowTextW(00010082,00539112 L"Program launch not possbile
/ Programmstart nicht m\00f6glich") ret=65089bc1 
--- snip ---

MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364419%28v=vs.85%29.aspx

--- quote ---
HANDLE WINAPI FindFirstFileEx(
  _In_        LPCTSTR lpFileName,
  _In_        FINDEX_INFO_LEVELS fInfoLevelId,
  _Out_       LPVOID lpFindFileData,
  _In_        FINDEX_SEARCH_OPS fSearchOp,
  _Reserved_  LPVOID lpSearchFilter,
  _In_        DWORD dwAdditionalFlags
);

...

dwAdditionalFlags [in]

    Specifies additional flags that control the search.
    Value    Meaning

    FIND_FIRST_EX_CASE_SENSITIVE
    1

    Searches are case-sensitive.

    FIND_FIRST_EX_LARGE_FETCH
    2

    Uses a larger buffer for directory queries, which can increase performance
of the find operation.

    Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: 
This value is not supported until Windows Server 2008 R2 and Windows 7.
--- quote ---

Source:
http://source.winehq.org/git/wine.git/blob/67545ed54c94e3541ae28f8c0e6dcf91dc87f4eb:/dlls/kernel32/file.c#l1838

--- snip ---
1838 HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS
level,
1839                         LPVOID data, FINDEX_SEARCH_OPS search_op,
1840                         LPVOID filter, DWORD flags)
1841 {
1842     WCHAR *mask, *p;
1843     FIND_FIRST_INFO *info = NULL;
1844     UNICODE_STRING nt_name;
1845     OBJECT_ATTRIBUTES attr;
1846     IO_STATUS_BLOCK io;
1847     NTSTATUS status;
1848     DWORD device = 0;
1849
1850     TRACE("%s %d %p %d %p %x\n", debugstr_w(filename), level, data,
search_op, filter, flags);
1851
1852     if ((search_op != FindExSearchNameMatch && search_op !=
FindExSearchLimitToDirectories)
1853 || flags != 0)
1854     {
1855        FIXME("options not implemented 0x%08x 0x%08x\n", search_op, flags
);
1856        return INVALID_HANDLE_VALUE;
1857     }
...

--- snip ---

Setting 'importance' to 'minor' since it doesn't happen with default
WINEPREFIX.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list