MSI: create a stub implementation for MsiViewGetError

Mike McCormack mike at codeweavers.com
Fri Jun 10 00:42:44 CDT 2005


ChangeLog:
* create a stub implementation for MsiViewGetError
-------------- next part --------------
Index: dlls/msi/msiquery.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/msiquery.c,v
retrieving revision 1.31
diff -u -p -r1.31 msiquery.c
--- dlls/msi/msiquery.c	2 Jun 2005 10:29:28 -0000	1.31
+++ dlls/msi/msiquery.c	10 Jun 2005 05:44:23 -0000
@@ -563,6 +563,42 @@ out:
     return r;
 }
 
+UINT WINAPI MsiViewGetErrorW( MSIHANDLE handle, LPWSTR szColumnNameBuffer,
+                              DWORD *pcchBuf )
+{
+    MSIQUERY *query = NULL;
+
+    FIXME("%ld %p %p\n", handle, szColumnNameBuffer, pcchBuf );
+
+    if( !pcchBuf )
+        return MSIDBERROR_INVALIDARG;
+
+    query = msihandle2msiinfo( handle, MSIHANDLETYPE_VIEW );
+    if( !query )
+        return MSIDBERROR_INVALIDARG;
+
+    msiobj_release( &query->hdr );
+    return MSIDBERROR_NOERROR;
+}
+
+UINT WINAPI MsiViewGetErrorA( MSIHANDLE handle, LPSTR szColumnNameBuffer,
+                              DWORD *pcchBuf )
+{
+    MSIQUERY *query = NULL;
+
+    FIXME("%ld %p %p\n", handle, szColumnNameBuffer, pcchBuf );
+
+    if( !pcchBuf )
+        return MSIDBERROR_INVALIDARG;
+
+    query = msihandle2msiinfo( handle, MSIHANDLETYPE_VIEW );
+    if( !query )
+        return MSIDBERROR_INVALIDARG;
+
+    msiobj_release( &query->hdr );
+    return MSIDBERROR_NOERROR;
+}
+
 UINT WINAPI MsiDatabaseApplyTransformA( MSIHANDLE hdb, 
                  LPCSTR szTransformFile, int iErrorCond)
 {
Index: dlls/msi/msi.spec
===================================================================
RCS file: /home/wine/wine/dlls/msi/msi.spec,v
retrieving revision 1.37
diff -u -p -r1.37 msi.spec
--- dlls/msi/msi.spec	20 May 2005 18:59:20 -0000	1.37
+++ dlls/msi/msi.spec	10 Jun 2005 05:44:23 -0000
@@ -158,8 +158,8 @@
 158 stdcall MsiViewClose(long)
 159 stdcall MsiViewExecute(long long)
 160 stdcall MsiViewFetch(long ptr)
-161 stub MsiViewGetErrorA
-162 stub MsiViewGetErrorW
+161 stdcall MsiViewGetErrorA(long ptr ptr)
+162 stdcall MsiViewGetErrorW(long ptr ptr)
 163 stdcall MsiViewModify(long long long)
 164 stdcall MsiDatabaseIsTablePersistentA(long str)
 165 stdcall MsiDatabaseIsTablePersistentW(long wstr)
Index: include/msiquery.h
===================================================================
RCS file: /home/wine/wine/include/msiquery.h,v
retrieving revision 1.12
diff -u -p -r1.12 msiquery.h
--- include/msiquery.h	30 May 2005 11:12:24 -0000	1.12
+++ include/msiquery.h	10 Jun 2005 05:44:23 -0000
@@ -89,6 +126,9 @@ UINT WINAPI MsiViewClose(MSIHANDLE);
 UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE,LPCSTR,MSIHANDLE*);
 UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
 #define     MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
+UINT WINAPI MsiViewGetErrorA(MSIHANDLE,LPSTR,DWORD*);
+UINT WINAPI MsiViewGetErrorW(MSIHANDLE,LPWSTR,DWORD*);
+#define     MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
 
 /* record manipulation */
 MSIHANDLE WINAPI MsiCreateRecord(unsigned int);


More information about the wine-patches mailing list