Module: wine Branch: master Commit: 2b5390290ce5bae9848e4d21bd90ab9480745f20 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b5390290ce5bae9848e4d21bd...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon May 16 20:48:13 2016 +0300
msdaps: Fix GetBasicErrorInfo() method proxy (Clang).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msdaps/usrmarshal.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index ef0163a..53aca39 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -1362,9 +1362,19 @@ HRESULT __RPC_STUB IErrorRecords_GetCustomErrorObject_Stub(IErrorRecords* This,
HRESULT CALLBACK IErrorRecords_GetBasicErrorInfo_Proxy(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo) { + IErrorInfo *error = NULL; + HRESULT hr; + TRACE("(%p)->%d %p\n", This, ulRecordNum, pErrorInfo);
- return IErrorRecords_GetBasicErrorInfo_Proxy(This, ulRecordNum, pErrorInfo); + hr = IErrorRecords_RemoteGetBasicErrorInfo_Proxy(This, ulRecordNum, pErrorInfo, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + + return hr; }
HRESULT __RPC_STUB IErrorRecords_GetBasicErrorInfo_Stub(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo,