[5/8] xolehlp: stub ITransactionImportWhereabouts

Daniel Jeliński djelinski1 at gmail.com
Tue May 28 15:05:43 CDT 2013


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130528/cdf910ad/attachment-0001.html>
-------------- next part --------------
From c621cf7be609aff8704fefcf824b6d39ff181a6e Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat, 4 May 2013 19:43:02 +0200
Subject: xolehlp: stub ITransactionImportWhereabouts

Not sure what these functions are supposed to return, will test further once appropriate headers are in git.
For now the application seems happy about the values we return.
---
 dlls/xolehlp/xolehlp.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/dlls/xolehlp/xolehlp.c b/dlls/xolehlp/xolehlp.c
index 37b2b9f..dfd92de 100644
--- a/dlls/xolehlp/xolehlp.c
+++ b/dlls/xolehlp/xolehlp.c
@@ -320,16 +320,21 @@ static ULONG WINAPI TransactionImportWhereabouts_Release(ITransactionImportWhere
 static HRESULT WINAPI TransactionImportWhereabouts_GetWhereaboutsSize(ITransactionImportWhereabouts *iface,
         ULONG *pcbWhereabouts)
 {
-    FIXME("(%p, %p): stub\n", iface, pcbWhereabouts);
+    FIXME("(%p, %p): stub returning fake value\n", iface, pcbWhereabouts);
 
-    return E_NOTIMPL;
+    if (!pcbWhereabouts) return E_INVALIDARG;
+    *pcbWhereabouts = 1;
+    return S_OK;
 }
 static HRESULT WINAPI TransactionImportWhereabouts_GetWhereabouts(ITransactionImportWhereabouts *iface,
         ULONG cbWhereabouts, BYTE *rgbWhereabouts,ULONG *pcbUsed)
 {
-    FIXME("(%p, %u, %p, %p): stub\n", iface, cbWhereabouts, rgbWhereabouts, pcbUsed);
+    FIXME("(%p, %u, %p, %p): stub returning fake value\n", iface, cbWhereabouts, rgbWhereabouts, pcbUsed);
 
-    return E_NOTIMPL;
+    if (!rgbWhereabouts || !pcbUsed) return E_INVALIDARG;
+    *rgbWhereabouts = 0;
+    *pcbUsed = 1;
+    return S_OK;
 }
 static const ITransactionImportWhereaboutsVtbl TransactionImportWhereabouts_Vtbl = {
     TransactionImportWhereabouts_QueryInterface,
-- 
1.7.5.4


More information about the wine-patches mailing list