Austin English : apphelp: Add a stub for SdbInitDatabase.

Alexandre Julliard julliard at winehq.org
Fri Apr 4 11:20:01 CDT 2014


Module: wine
Branch: master
Commit: 064968fb87b53191aa9ef7535f54c4b640b88c68
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=064968fb87b53191aa9ef7535f54c4b640b88c68

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Apr  3 21:57:10 2014 -0700

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

<div dir="ltr"><pre>For <a href="https://bugs.winehq.org/show_bug.cgi?id=35891" target="_blank">https://bugs.winehq.org/show_bug.cgi?id=35891</a>
</pre>Try 3:<br>remove extra FIXME for non-null path<br><br>Try 2: <br>fix function prototype<br clear="all">improve the fixme (print flags as hex)<br clear="all"><br>-- <br>-Austin
</div>

---

 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 e8fce78..a7884b1 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 60d931c..06cabc5 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




More information about the wine-cvs mailing list