https://bugs.winehq.org/show_bug.cgi?id=35893
Bug ID: 35893 Summary: sdb2xml (.NET 2.0 app) crashes on unimplemented function apphelp.dll.SdbOpenDatabase Product: Wine Version: 1.7.15 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net
Hello folks,
as the summary says.
Prerequisite: 'winetricks -q dotnet20' (Mono might work too, couldn't test)
Created a dummy file:
--- snip --- $ touch foo.sdb --- snip ---
Run the app:
--- snip --- $ wine ./sdb2xml.exe foo.sdb fixme:thread:SetThreadStackGuarantee (0x33fc28): stub fixme:shell:URL_ParseUrl failed to parse L"System" fixme:shell:URL_ParseUrl failed to parse L"System.Xml" wine: Call from 0x7b83abc3 to unimplemented function apphelp.dll.SdbOpenDatabase, aborting Error: External component has thrown an exception. fixme:process:FlushProcessWriteBuffers : stub --- snip ---
MSDN: http://msdn.microsoft.com/en-us/library/bb432457%28v=vs.85%29.aspx
--- quote --- PDB WINAPI SdbOpenDatabase( _In_ LPCTSTR pwszPath, _In_ PATH_TYPE eType );
Parameters
pwszPath [in]
The database path. This parameter cannot be NULL. eType [in]
The path type. See PATH_TYPE for a list of values.
--- quote ---
There is no ANSI version here, LPCTSTR will be always mapped to LPCWSTR.
Interestingly there seem to be two API functions essentially doing the same:
SdbOpenDatabase -> Windows Vista+, returns 'PDB' SdbInitDatabase -> Windows XP+, returns 'HSDB'
$ sha1sum sdb2xml.exe 9808bc17a7ea4f43ecdcb11f4e18204805246dbd sdb2xml.exe
$ du -sh sdb2xml.exe 28K sdb2xml.exe
$ wine --version wine-1.7.15-112-g2aad5d7
Regards