winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
May 2006
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
863 discussions
Start a n
N
ew thread
Mike McCormack : kernel32: Fix some pointer to integer casts.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: d5a998b38fd48eaebffab98c678bed9b6290169f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d5a998b38fd48eaebffab98…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Thu May 25 13:46:32 2006 +0900 kernel32: Fix some pointer to integer casts. --- dlls/kernel/console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/console.c b/dlls/kernel/console.c index 884b8dc..384bbfd 100644 --- a/dlls/kernel/console.c +++ b/dlls/kernel/console.c @@ -1040,7 +1040,7 @@ static BOOL start_console_renderer_h PROCESS_INFORMATION pi; /* FIXME: use dynamic allocation for most of the buffers below */ - ret = snprintf(buffer, sizeof(buffer), "%s --use-event=%d", appname, (INT)hEvent); + ret = snprintf(buffer, sizeof(buffer), "%s --use-event=%ld", appname, (DWORD_PTR)hEvent); if ((ret > -1) && (ret < sizeof(buffer)) && CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, si, &pi)) @@ -1532,7 +1532,7 @@ static WINE_EXCEPTION_FILTER(CONSOLE_Ctr */ static DWORD WINAPI CONSOLE_SendEventThread(void* pmt) { - DWORD event = (DWORD)pmt; + DWORD_PTR event = (DWORD_PTR)pmt; struct ConsoleHandler* ch; if (event == CTRL_C_EVENT)
1
0
0
0
Mike McCormack : mapi32: Fix prototype of MAPILogon and MAPILogoff.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: d39686f482574a5851cdf4d29e6211bd38d69b10 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d39686f482574a5851cdf4d…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Thu May 25 11:41:27 2006 +0900 mapi32: Fix prototype of MAPILogon and MAPILogoff. --- dlls/mapi32/mapi32_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mapi32/mapi32_main.c b/dlls/mapi32/mapi32_main.c index 2f2b717..8b74999 100644 --- a/dlls/mapi32/mapi32_main.c +++ b/dlls/mapi32/mapi32_main.c @@ -74,7 +74,7 @@ HRESULT WINAPI MAPIInitialize(LPVOID ini return SUCCESS_SUCCESS; } -ULONG WINAPI MAPILogon(ULONG uiparam, LPSTR profile, LPSTR password, +ULONG WINAPI MAPILogon(ULONG_PTR uiparam, LPSTR profile, LPSTR password, FLAGS flags, ULONG reserved, LPLHANDLE session) { FIXME("(0x%08lx %s %p 0x%08lx 0x%08lx %p) Stub\n", uiparam, @@ -84,7 +84,7 @@ ULONG WINAPI MAPILogon(ULONG uiparam, LP return SUCCESS_SUCCESS; } -ULONG WINAPI MAPILogoff(LHANDLE session, ULONG uiparam, FLAGS flags, +ULONG WINAPI MAPILogoff(LHANDLE session, ULONG_PTR uiparam, FLAGS flags, ULONG reserved ) { FIXME("(0x%08lx 0x%08lx 0x%08lx 0x%08lx) Stub\n", session,
1
0
0
0
Mike McCormack : richedit: Fix prototype of the callback function.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: ba8f40d4654bcf835572b0494111a16bfb322dd5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ba8f40d4654bcf835572b04…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Thu May 25 11:41:11 2006 +0900 richedit: Fix prototype of the callback function. --- include/richedit.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/richedit.h b/include/richedit.h index ecf3c98..9798fc6 100644 --- a/include/richedit.h +++ b/include/richedit.h @@ -159,7 +159,7 @@ #define EN_ALIGNLTR 0x0710 #define EN_ALIGNRTL 0x0711 -typedef DWORD (CALLBACK * EDITSTREAMCALLBACK)( DWORD, LPBYTE, LONG, LONG * ); +typedef DWORD (CALLBACK * EDITSTREAMCALLBACK)( DWORD_PTR, LPBYTE, LONG, LONG * ); /* tab stops number limit */ #define MAX_TAB_STOPS 0x00000020
1
0
0
0
Robert Shearman : ole32: Add a class factory for CLSID_InProcFreeMarshaler.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: f2bd261f120c9bfbb42930a19192e134a306e8f3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f2bd261f120c9bfbb42930a…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:02:35 2006 +0100 ole32: Add a class factory for CLSID_InProcFreeMarshaler. --- dlls/ole32/compobj.c | 3 ++ dlls/ole32/compobj_private.h | 1 + dlls/ole32/ftmarshal.c | 65 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index f2a587f..d241bfb 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1642,6 +1642,9 @@ HRESULT WINAPI CoGetClassObject( static const WCHAR wszInprocServer32[] = {'I','n','p','r','o','c','S','e','r','v','e','r','3','2',0}; HKEY hkey; + if (IsEqualCLSID(rclsid, &CLSID_InProcFreeMarshaler)) + return FTMarshalCF_Create(iid, ppv); + hres = COM_OpenKeyForCLSID(rclsid, wszInprocServer32, KEY_READ, &hkey); if (FAILED(hres)) { diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index 2237469..f9fac80 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -178,6 +178,7 @@ extern HRESULT WINE_StringFromCLSID(cons HRESULT COM_OpenKeyForCLSID(REFCLSID clsid, LPCWSTR keyname, REGSAM access, HKEY *key); HRESULT MARSHAL_GetStandardMarshalCF(LPVOID *ppv); +HRESULT FTMarshalCF_Create(REFIID riid, LPVOID *ppv); /* Stub Manager */ diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index a0befee..9f41f65 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -325,3 +325,68 @@ HRESULT WINAPI CoCreateFreeThreadedMarsh *ppunkMarshal = _IFTMUnknown_ (ftm); return S_OK; } + +static HRESULT WINAPI FTMarshalCF_QueryInterface(LPCLASSFACTORY iface, + REFIID riid, LPVOID *ppv) +{ + *ppv = NULL; + if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IClassFactory)) + { + *ppv = iface; + IUnknown_AddRef(iface); + return S_OK; + } + return E_NOINTERFACE; +} + +static ULONG WINAPI FTMarshalCF_AddRef(LPCLASSFACTORY iface) +{ + return 2; /* non-heap based object */ +} + +static ULONG WINAPI FTMarshalCF_Release(LPCLASSFACTORY iface) +{ + return 1; /* non-heap based object */ +} + +static HRESULT WINAPI FTMarshalCF_CreateInstance(LPCLASSFACTORY iface, + LPUNKNOWN pUnk, REFIID riid, LPVOID *ppv) +{ + IUnknown *pUnknown; + HRESULT hr; + + TRACE("(%p, %s, %p)\n", pUnk, debugstr_guid(riid), ppv); + + *ppv = NULL; + + hr = CoCreateFreeThreadedMarshaler(pUnk, &pUnknown); + + if (SUCCEEDED(hr)) + { + hr = IUnknown_QueryInterface(pUnknown, riid, ppv); + IUnknown_Release(pUnknown); + } + + return hr; +} + +static HRESULT WINAPI FTMarshalCF_LockServer(LPCLASSFACTORY iface, BOOL fLock) +{ + FIXME("(%d), stub!\n",fLock); + return S_OK; +} + +static const IClassFactoryVtbl FTMarshalCFVtbl = +{ + FTMarshalCF_QueryInterface, + FTMarshalCF_AddRef, + FTMarshalCF_Release, + FTMarshalCF_CreateInstance, + FTMarshalCF_LockServer +}; +static const IClassFactoryVtbl *FTMarshalCF = &FTMarshalCFVtbl; + +HRESULT FTMarshalCF_Create(REFIID riid, LPVOID *ppv) +{ + return IClassFactory_QueryInterface((IClassFactory *)&FTMarshalCF, riid, ppv); +}
1
0
0
0
Robert Shearman : ole32: Implement GetUnmarshalClass for the free-threaded marshaler and
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: 386fcbb5f789be359e983097f86d571df28669ea URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=386fcbb5f789be359e98309…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:02:26 2006 +0100 ole32: Implement GetUnmarshalClass for the free-threaded marshaler and remove unnecessary unmarshaling code for the standard-marshal case - this is handled by CoUnmarshalInterface and CoReleaseMarshalData. --- dlls/ole32/ftmarshal.c | 99 +++++++++++++++++------------------------------- 1 files changed, 36 insertions(+), 63 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 5255f60..a0befee 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -38,6 +38,8 @@ #include "compobj_private.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); +const CLSID CLSID_InProcFreeMarshaler = { 0x33A, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} }; + typedef struct _FTMarshalImpl { const IUnknownVtbl *lpVtbl; LONG ref; @@ -138,7 +140,12 @@ static HRESULT WINAPI FTMarshalImpl_GetUnmarshalClass (LPMARSHAL iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, CLSID * pCid) { - FIXME ("(), stub!\n"); + TRACE("(%s, %p, 0x%lx, %p, 0x%lx, %p)\n", debugstr_guid(riid), pv, + dwDestContext, pvDestContext, mshlflags, pCid); + if (dwDestContext == MSHCTX_INPROC || dwDestContext == MSHCTX_CROSSCTX) + memcpy(pCid, &CLSID_InProcFreeMarshaler, sizeof(CLSID_InProcFreeMarshaler)); + else + memcpy(pCid, &CLSID_DfMarshal, sizeof(CLSID_InProcFreeMarshaler)); return S_OK; } @@ -175,7 +182,6 @@ FTMarshalImpl_MarshalInterface (LPMARSHA IMarshal *pMarshal = NULL; HRESULT hres; - DWORD magic = 0x57dfd54d /* MEOW */; TRACE("(%p, %s, %p, 0x%lx, %p, 0x%lx)\n", pStm, debugstr_guid(riid), pv, dwDestContext, pvDestContext, mshlflags); @@ -210,13 +216,6 @@ FTMarshalImpl_MarshalInterface (LPMARSHA return S_OK; } - /* FIXME: this isn't exactly corret. it looks like the standard marshaler - * for native writes all of the OBJREF data into the stream, so we should - * really rely on it to write this constant for us. however, we need a - * constant to differentiate the outofproc data from the inproc data */ - hres = IStream_Write (pStm, &magic, sizeof (magic), NULL); - if (hres != S_OK) return STG_E_MEDIUMFULL; - /* use the standard marshaler to handle all other cases */ CoGetStandardMarshal (riid, pv, dwDestContext, pvDestContext, mshlflags, &pMarshal); hres = IMarshal_MarshalInterface (pMarshal, pStm, riid, pv, dwDestContext, pvDestContext, mshlflags); @@ -228,6 +227,9 @@ static HRESULT WINAPI FTMarshalImpl_UnmarshalInterface (LPMARSHAL iface, IStream * pStm, REFIID riid, void **ppv) { DWORD mshlflags; + IUnknown *object; + DWORD constant; + GUID unknown_guid; HRESULT hres; TRACE ("(%p, %s, %p)\n", pStm, debugstr_guid(riid), ppv); @@ -235,42 +237,29 @@ FTMarshalImpl_UnmarshalInterface (LPMARS hres = IStream_Read (pStm, &mshlflags, sizeof (mshlflags), NULL); if (hres != S_OK) return STG_E_READFAULT; - if (mshlflags == 0x57dfd54d /* MEOW */) { - IMarshal *pMarshal; - - hres = CoCreateInstance (&CLSID_DfMarshal, NULL, CLSCTX_INPROC, &IID_IMarshal, (void **)&pMarshal); - if (FAILED(hres)) return hres; - - hres = IMarshal_UnmarshalInterface (pMarshal, pStm, riid, ppv); - IMarshal_Release (pMarshal); - return hres; - } - else { - IUnknown *object; - DWORD constant; - GUID unknown_guid; - - hres = IStream_Read (pStm, &object, sizeof (object), NULL); - if (hres != S_OK) return STG_E_READFAULT; + hres = IStream_Read (pStm, &object, sizeof (object), NULL); + if (hres != S_OK) return STG_E_READFAULT; - hres = IStream_Read (pStm, &constant, sizeof (constant), NULL); - if (hres != S_OK) return STG_E_READFAULT; - if (constant != 0) - FIXME("constant is 0x%lx instead of 0\n", constant); + hres = IStream_Read (pStm, &constant, sizeof (constant), NULL); + if (hres != S_OK) return STG_E_READFAULT; + if (constant != 0) + FIXME("constant is 0x%lx instead of 0\n", constant); - hres = IStream_Read (pStm, &unknown_guid, sizeof (unknown_guid), NULL); - if (hres != S_OK) return STG_E_READFAULT; + hres = IStream_Read (pStm, &unknown_guid, sizeof (unknown_guid), NULL); + if (hres != S_OK) return STG_E_READFAULT; - hres = IUnknown_QueryInterface(object, riid, ppv); - if (!(mshlflags & (MSHLFLAGS_TABLEWEAK|MSHLFLAGS_TABLESTRONG))) - IUnknown_Release(object); - return hres; - } + hres = IUnknown_QueryInterface(object, riid, ppv); + if (!(mshlflags & (MSHLFLAGS_TABLEWEAK|MSHLFLAGS_TABLESTRONG))) + IUnknown_Release(object); + return hres; } static HRESULT WINAPI FTMarshalImpl_ReleaseMarshalData (LPMARSHAL iface, IStream * pStm) { DWORD mshlflags; + IUnknown *object; + DWORD constant; + GUID unknown_guid; HRESULT hres; TRACE ("(%p)\n", pStm); @@ -278,35 +267,19 @@ static HRESULT WINAPI FTMarshalImpl_Rele hres = IStream_Read (pStm, &mshlflags, sizeof (mshlflags), NULL); if (hres != S_OK) return STG_E_READFAULT; - if (mshlflags == 0x57dfd54d /* MEOW */) { - IMarshal *pMarshal; - - hres = CoCreateInstance (&CLSID_DfMarshal, NULL, CLSCTX_INPROC, &IID_IMarshal, (void **)&pMarshal); - if (FAILED(hres)) return hres; - - hres = IMarshal_ReleaseMarshalData (pMarshal, pStm); - IMarshal_Release (pMarshal); - return hres; - } - else { - IUnknown *object; - DWORD constant; - GUID unknown_guid; - - hres = IStream_Read (pStm, &object, sizeof (object), NULL); - if (hres != S_OK) return STG_E_READFAULT; + hres = IStream_Read (pStm, &object, sizeof (object), NULL); + if (hres != S_OK) return STG_E_READFAULT; - hres = IStream_Read (pStm, &constant, sizeof (constant), NULL); - if (hres != S_OK) return STG_E_READFAULT; - if (constant != 0) - FIXME("constant is 0x%lx instead of 0\n", constant); + hres = IStream_Read (pStm, &constant, sizeof (constant), NULL); + if (hres != S_OK) return STG_E_READFAULT; + if (constant != 0) + FIXME("constant is 0x%lx instead of 0\n", constant); - hres = IStream_Read (pStm, &unknown_guid, sizeof (unknown_guid), NULL); - if (hres != S_OK) return STG_E_READFAULT; + hres = IStream_Read (pStm, &unknown_guid, sizeof (unknown_guid), NULL); + if (hres != S_OK) return STG_E_READFAULT; - IUnknown_Release(object); - return S_OK; - } + IUnknown_Release(object); + return S_OK; } static HRESULT WINAPI FTMarshalImpl_DisconnectObject (LPMARSHAL iface, DWORD dwReserved)
1
0
0
0
Robert Shearman : ole32: Implement table-strong marshaling and ReleaseMarshalData for the free-threaded marshaler .
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: 2c57189a97a24109958d6df7a3e4624a055b6bac URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2c57189a97a24109958d6df…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:02:14 2006 +0100 ole32: Implement table-strong marshaling and ReleaseMarshalData for the free-threaded marshaler. --- dlls/ole32/ftmarshal.c | 44 ++++++++++++++++++++++++++++++++++++++++---- dlls/ole32/tests/marshal.c | 6 +++--- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 4c32796..5255f60 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -262,7 +262,7 @@ FTMarshalImpl_UnmarshalInterface (LPMARS if (hres != S_OK) return STG_E_READFAULT; hres = IUnknown_QueryInterface(object, riid, ppv); - if (!(mshlflags & MSHLFLAGS_TABLEWEAK)) + if (!(mshlflags & (MSHLFLAGS_TABLEWEAK|MSHLFLAGS_TABLESTRONG))) IUnknown_Release(object); return hres; } @@ -270,13 +270,49 @@ FTMarshalImpl_UnmarshalInterface (LPMARS static HRESULT WINAPI FTMarshalImpl_ReleaseMarshalData (LPMARSHAL iface, IStream * pStm) { - FIXME ("(), stub!\n"); - return S_OK; + DWORD mshlflags; + HRESULT hres; + + TRACE ("(%p)\n", pStm); + + hres = IStream_Read (pStm, &mshlflags, sizeof (mshlflags), NULL); + if (hres != S_OK) return STG_E_READFAULT; + + if (mshlflags == 0x57dfd54d /* MEOW */) { + IMarshal *pMarshal; + + hres = CoCreateInstance (&CLSID_DfMarshal, NULL, CLSCTX_INPROC, &IID_IMarshal, (void **)&pMarshal); + if (FAILED(hres)) return hres; + + hres = IMarshal_ReleaseMarshalData (pMarshal, pStm); + IMarshal_Release (pMarshal); + return hres; + } + else { + IUnknown *object; + DWORD constant; + GUID unknown_guid; + + hres = IStream_Read (pStm, &object, sizeof (object), NULL); + if (hres != S_OK) return STG_E_READFAULT; + + hres = IStream_Read (pStm, &constant, sizeof (constant), NULL); + if (hres != S_OK) return STG_E_READFAULT; + if (constant != 0) + FIXME("constant is 0x%lx instead of 0\n", constant); + + hres = IStream_Read (pStm, &unknown_guid, sizeof (unknown_guid), NULL); + if (hres != S_OK) return STG_E_READFAULT; + + IUnknown_Release(object); + return S_OK; + } } static HRESULT WINAPI FTMarshalImpl_DisconnectObject (LPMARSHAL iface, DWORD dwReserved) { - FIXME ("(), stub!\n"); + TRACE ("()\n"); + /* nothing to do */ return S_OK; } diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c index 203a128..7aba67e 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -1718,7 +1718,7 @@ #endif IUnknown_Release(pProxy); - todo_wine ok_more_than_one_lock(); + ok_more_than_one_lock(); IStream_Seek(pStream, llZero, STREAM_SEEK_SET, NULL); hr = IMarshal_ReleaseMarshalData(pFTMarshal, pStream); @@ -1767,7 +1767,7 @@ #endif hr = IMarshal_ReleaseMarshalData(pFTMarshal, pStream); ok_ole_success(hr, IMarshal_ReleaseMarshalData); - todo_wine ok_no_locks(); + ok_no_locks(); /* doesn't enforce marshaling rules here and allows us to unmarshal the * interface, even though it was freed above */ @@ -1775,7 +1775,7 @@ #endif hr = IMarshal_UnmarshalInterface(pFTMarshal, pStream, &IID_IUnknown, (void **)&pProxy); ok_ole_success(hr, IMarshal_UnmarshalInterface); - todo_wine ok_no_locks(); + ok_no_locks(); IStream_Release(pStream); IMarshal_Release(pFTMarshal);
1
0
0
0
Robert Shearman : ole32: Implement table-weak marshaling for the free-threaded marshaler.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: f9b5280dd0057462a50df9efdf472b22865f9b17 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f9b5280dd0057462a50df9e…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:01:53 2006 +0100 ole32: Implement table-weak marshaling for the free-threaded marshaler. --- dlls/ole32/ftmarshal.c | 7 ++++++- dlls/ole32/tests/marshal.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 04eb745..4c32796 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -191,6 +191,10 @@ FTMarshalImpl_MarshalInterface (LPMARSHA if (FAILED(hres)) return hres; + /* don't hold a reference to table-weak marshaled interfaces */ + if (mshlflags & MSHLFLAGS_TABLEWEAK) + IUnknown_Release((IUnknown *)object); + hres = IStream_Write (pStm, &mshlflags, sizeof (mshlflags), NULL); if (hres != S_OK) return STG_E_MEDIUMFULL; @@ -258,7 +262,8 @@ FTMarshalImpl_UnmarshalInterface (LPMARS if (hres != S_OK) return STG_E_READFAULT; hres = IUnknown_QueryInterface(object, riid, ppv); - IUnknown_Release(object); + if (!(mshlflags & MSHLFLAGS_TABLEWEAK)) + IUnknown_Release(object); return hres; } } diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c index e2eb472..203a128 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -1734,7 +1734,7 @@ #endif MSHLFLAGS_TABLEWEAK); ok_ole_success(hr, IMarshal_MarshalInterface); - todo_wine ok_no_locks(); + ok_no_locks(); test_freethreadedmarshaldata(pStream, MSHCTX_INPROC, &Test_ClassFactory, MSHLFLAGS_TABLEWEAK);
1
0
0
0
Robert Shearman : ole32: Release the standard marshal in the free-threaded marshaler' s UnmarshalInterface function.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: b795631daa6d70e40f473b46c17a7ded2256deb1 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b795631daa6d70e40f473b4…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:02:05 2006 +0100 ole32: Release the standard marshal in the free-threaded marshaler's UnmarshalInterface function. --- dlls/ole32/ftmarshal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 8749c3c..04eb745 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -238,6 +238,8 @@ FTMarshalImpl_UnmarshalInterface (LPMARS if (FAILED(hres)) return hres; hres = IMarshal_UnmarshalInterface (pMarshal, pStm, riid, ppv); + IMarshal_Release (pMarshal); + return hres; } else { IUnknown *object; @@ -259,8 +261,6 @@ FTMarshalImpl_UnmarshalInterface (LPMARS IUnknown_Release(object); return hres; } - - return S_OK; } static HRESULT WINAPI FTMarshalImpl_ReleaseMarshalData (LPMARSHAL iface, IStream * pStm)
1
0
0
0
Robert Shearman : ole32: Add a rough implementation of the free-threaded marshaler MarshalInterface and UnmarshalInterface methods , with test cases.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: 4335c64f7b944b195c33b54daac070cf87519015 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4335c64f7b944b195c33b54…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:01:41 2006 +0100 ole32: Add a rough implementation of the free-threaded marshaler MarshalInterface and UnmarshalInterface methods, with test cases. --- dlls/ole32/ftmarshal.c | 75 +++++++++++++++++- dlls/ole32/tests/marshal.c | 179 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 249 insertions(+), 5 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=4335c64f7b944b195c3…
1
0
0
0
Robert Shearman : ole32: Fix the free-threaded marshaler when it has no outer unknown.
by Alexandre Julliard
25 May '06
25 May '06
Module: wine Branch: refs/heads/master Commit: 4d1d2b6c1f362b0c4e312aa12fcb22edcc22769e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4d1d2b6c1f362b0c4e312aa…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 24 23:00:53 2006 +0100 ole32: Fix the free-threaded marshaler when it has no outer unknown. --- dlls/ole32/ftmarshal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index c938f6d..8a776f1 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -241,7 +241,7 @@ HRESULT WINAPI CoCreateFreeThreadedMarsh ftm->lpVtbl = &iunkvt; ftm->lpvtblFTM = &ftmvtbl; ftm->ref = 1; - ftm->pUnkOuter = punkOuter; + ftm->pUnkOuter = punkOuter ? punkOuter : _IFTMUnknown_(ftm); *ppunkMarshal = _IFTMUnknown_ (ftm); return S_OK;
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
87
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Results per page:
10
25
50
100
200