From 064968fb87b53191aa9ef7535f54c4b640b88c68 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 3 Apr 2014 21:57:10 -0700 Subject: [PATCH] apphelp: Add a stub for SdbInitDatabase. For https://bugs.winehq.org/show_bug.cgi?id=35891 Try 3: remove extra FIXME for non-null path Try 2: fix function prototype improve the fixme (print flags as hex) -- -Austin
For https://bugs.winehq.org/show_bug.cgi?id=35891
Try 3:
remove extra FIXME for non-null path

Try 2:
fix function prototype
improve the fixme (print flags as hex)

--
-Austin
--- dlls/apphelp/apphelp.c | 9 +++++++++ dlls/apphelp/apphelp.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/apphelp/apphelp.c b/dlls/apphelp/apphelp.c index e8fce789b5f..a7884b1bfda 100644 --- a/dlls/apphelp/apphelp.c +++ b/dlls/apphelp/apphelp.c @@ -33,6 +33,7 @@ typedef enum _PATH_TYPE { /* FIXME: don't know where to place that typedef */ typedef HANDLE PDB; +typedef HANDLE HSDB; BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) { @@ -81,3 +82,11 @@ BOOL WINAPI ShimFlushCache( HWND hwnd, HINSTANCE instance, LPCSTR cmdline, int c SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return TRUE; } + + +HSDB WINAPI SdbInitDatabase(DWORD flags, LPCWSTR path) +{ + FIXME("stub: %08x %s\n", flags, debugstr_w(path)); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; +} diff --git a/dlls/apphelp/apphelp.spec b/dlls/apphelp/apphelp.spec index 60d931c747d..06cabc52455 100644 --- a/dlls/apphelp/apphelp.spec +++ b/dlls/apphelp/apphelp.spec @@ -83,7 +83,7 @@ @ stub SdbGrabMatchingInfoEx @ stub SdbGUIDFromString @ stub SdbGUIDToString -@ stub SdbInitDatabase +@ stdcall SdbInitDatabase(long wstr) @ stub SdbInitDatabaseEx @ stub SdbIsNullGUID @ stub SdbIsStandardDatabase