=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: apphelp: Add stub for SdbCreateDatabase.

Alexandre Julliard julliard at winehq.org
Mon Nov 7 13:30:42 CST 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Nov  4 17:57:47 2011 +0100

apphelp: Add stub for SdbCreateDatabase.

---

 dlls/apphelp/apphelp.c    |   16 ++++++++++++++++
 dlls/apphelp/apphelp.spec |    2 +-
 2 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/dlls/apphelp/apphelp.c b/dlls/apphelp/apphelp.c
index 615f8af..20ff375 100644
--- a/dlls/apphelp/apphelp.c
+++ b/dlls/apphelp/apphelp.c
@@ -23,6 +23,15 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(apphelp);
 
+/* FIXME: don't know where to place that enum */
+typedef enum _PATH_TYPE {
+    DOS_PATH,
+    NT_PATH
+} PATH_TYPE;
+
+/* FIXME: don't know where to place that typedef */
+typedef HANDLE PDB;
+
 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
 {
     TRACE("%p, %u, %p\n", hinst, reason, reserved);
@@ -45,3 +54,10 @@ BOOL WINAPI ApphelpCheckInstallShieldPackage( void* ptr, LPCWSTR path )
     FIXME("stub: %p %s\n", ptr, debugstr_w(path));
     return TRUE;
 }
+
+PDB WINAPI SdbCreateDatabase( LPCWSTR path, PATH_TYPE type )
+{
+    FIXME("stub: %s %u\n", debugstr_w(path), type);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return NULL;
+}
diff --git a/dlls/apphelp/apphelp.spec b/dlls/apphelp/apphelp.spec
index 901537f..005e39d 100644
--- a/dlls/apphelp/apphelp.spec
+++ b/dlls/apphelp/apphelp.spec
@@ -26,7 +26,7 @@
 @ stub SdbCloseDatabaseWrite
 @ stub SdbCloseLocalDatabase
 @ stub SdbCommitIndexes
-@ stub SdbCreateDatabase
+@ stdcall SdbCreateDatabase(wstr long)
 @ stub SdbCreateHelpCenterURL
 @ stub SdbCreateMsiTransformFile
 @ stub SdbDeclareIndex




More information about the wine-cvs mailing list