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
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
June 2006
----- 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
854 discussions
Start a n
N
ew thread
Robert Shearman : oleaut32: We always pass in an IRpcChannelBuffer to IRpcStubBuffer::Invoke now,
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 70c34ccc47affe8df7d197c4342fc47658ee2881 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=70c34ccc47affe8df7d197c…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Jun 9 17:25:50 2006 +0100 oleaut32: We always pass in an IRpcChannelBuffer to IRpcStubBuffer::Invoke now, so remove the case for it being NULL. --- dlls/oleaut32/tmarshal.c | 20 +++----------------- 1 files changed, 3 insertions(+), 17 deletions(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 5523d28..12aef0d 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -1820,23 +1820,9 @@ TMStubImpl_Invoke( HeapFree(GetProcessHeap(), 0, args); xmsg->cbBuffer = buf.curoff; - if (rpcchanbuf) - { - hres = IRpcChannelBuffer_GetBuffer(rpcchanbuf, xmsg, &This->iid); - if (hres != S_OK) - ERR("IRpcChannelBuffer_GetBuffer failed with error 0x%08lx\n", hres); - } - else - { - /* FIXME: remove this case when we start sending an IRpcChannelBuffer - * object with builtin OLE */ - RPC_STATUS status = I_RpcGetBuffer((RPC_MESSAGE *)xmsg); - if (status != RPC_S_OK) - { - ERR("I_RpcGetBuffer failed with error %ld\n", status); - hres = E_FAIL; - } - } + hres = IRpcChannelBuffer_GetBuffer(rpcchanbuf, xmsg, &This->iid); + if (hres != S_OK) + ERR("IRpcChannelBuffer_GetBuffer failed with error 0x%08lx\n", hres); if (hres == S_OK) memcpy(xmsg->Buffer, buf.base, buf.curoff);
1
0
0
0
Robert Shearman : ole32: If IRpcStubBuffer_Invoke fails, we should raise an exception to
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: c60c28cf0831d68ff257a7d93c540a1feb658383 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c60c28cf0831d68ff257a7d…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Jun 9 17:25:26 2006 +0100 ole32: If IRpcStubBuffer_Invoke fails, we should raise an exception to tell the RPC runtime that the call failed. --- dlls/ole32/rpc.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 3617e50..e30989d 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -569,9 +569,14 @@ static void __RPC_STUB dispatch_rpc(RPC_ } } + hr = params->hr; HeapFree(GetProcessHeap(), 0, params); apartment_release(apt); + + /* if IRpcStubBuffer_Invoke fails, we should raise an exception to tell + * the RPC runtime that the call failed */ + if (hr) RpcRaiseException(hr); } /* stub registration */
1
0
0
0
Robert Shearman : ole32: Register ISequentialStream for marshaling.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 3d4e9d6a71591b2088903565a1626999ed4b46bd URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=3d4e9d6a71591b208890356…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Jun 9 17:24:57 2006 +0100 ole32: Register ISequentialStream for marshaling. --- dlls/ole32/regsvr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/regsvr.c b/dlls/ole32/regsvr.c index 03f0a06..7a35425 100644 --- a/dlls/ole32/regsvr.c +++ b/dlls/ole32/regsvr.c @@ -501,6 +501,7 @@ static const struct regsvr_interface int STD_INTERFACE_ENTRY(IRemUnknown), LCL_INTERFACE_ENTRY(IClientSecurity), LCL_INTERFACE_ENTRY(IServerSecurity), + STD_INTERFACE_ENTRY(ISequentialStream), { NULL } /* list terminator */ };
1
0
0
0
Robert Shearman : ole32: Implement CoQueryClientBlanket, CoImpersonateClient and
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 51e22f42bb95f8827b24e9860b8e5e57554ccaec URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=51e22f42bb95f8827b24e98…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Jun 9 17:24:39 2006 +0100 ole32: Implement CoQueryClientBlanket, CoImpersonateClient and CoRevertToSelf on top of CoGetCallContext, which is a stub. --- dlls/ole32/compobj.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++++ dlls/ole32/ole32.spec | 8 +-- 2 files changed, 147 insertions(+), 4 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index d241bfb..796c4ab 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -2641,6 +2641,149 @@ HRESULT WINAPI CoCopyProxy(IUnknown *pPr } +/*********************************************************************** + * CoGetCallContext [OLE32.@] + * + * Gets the context of the currently executing server call in the current + * thread. + * + * PARAMS + * riid [I] Context interface to return. + * ppv [O] Pointer to memory that will receive the context on return. + * + * RETURNS + * Success: S_OK. + * Failure: HRESULT code. + */ +HRESULT WINAPI CoGetCallContext(REFIID riid, void **ppv) +{ + FIXME("(%s, %p): stub\n", debugstr_guid(riid), ppv); + + *ppv = NULL; + return E_NOINTERFACE; +} + +/*********************************************************************** + * CoQueryClientBlanket [OLE32.@] + * + * Retrieves the authentication information about the client of the currently + * executing server call in the current thread. + * + * PARAMS + * pAuthnSvc [O] Optional. The type of authentication service. + * pAuthzSvc [O] Optional. The type of authorization service. + * pServerPrincName [O] Optional. The server prinicple name. + * pAuthnLevel [O] Optional. The authentication level. + * pImpLevel [O] Optional. The impersonation level. + * pPrivs [O] Optional. Information about the privileges of the client. + * pCapabilities [IO] Optional. Flags affecting the security behaviour. + * + * RETURNS + * Success: S_OK. + * Failure: HRESULT code. + * + * SEE ALSO + * CoImpersonateClient, CoRevertToSelf, CoGetCallContext. + */ +HRESULT WINAPI CoQueryClientBlanket( + DWORD *pAuthnSvc, + DWORD *pAuthzSvc, + OLECHAR **pServerPrincName, + DWORD *pAuthnLevel, + DWORD *pImpLevel, + RPC_AUTHZ_HANDLE *pPrivs, + DWORD *pCapabilities) +{ + IServerSecurity *pSrvSec; + HRESULT hr; + + TRACE("(%p, %p, %p, %p, %p, %p, %p)\n", + pAuthnSvc, pAuthzSvc, pServerPrincName, pAuthnLevel, pImpLevel, + pPrivs, pCapabilities); + + hr = CoGetCallContext(&IID_IServerSecurity, (void **)&pSrvSec); + if (SUCCEEDED(hr)) + { + hr = IServerSecurity_QueryBlanket( + pSrvSec, pAuthnSvc, pAuthzSvc, pServerPrincName, pAuthnLevel, + pImpLevel, pPrivs, pCapabilities); + IServerSecurity_Release(pSrvSec); + } + + return hr; +} + +/*********************************************************************** + * CoImpersonateClient [OLE32.@] + * + * Impersonates the client of the currently executing server call in the + * current thread. + * + * PARAMS + * None. + * + * RETURNS + * Success: S_OK. + * Failure: HRESULT code. + * + * NOTES + * If this function fails then the current thread will not be impersonating + * the client and all actions will take place on behalf of the server. + * Therefore, it is important to check the return value from this function. + * + * SEE ALSO + * CoRevertToSelf, CoQueryClientBlanket, CoGetCallContext. + */ +HRESULT WINAPI CoImpersonateClient(void) +{ + IServerSecurity *pSrvSec; + HRESULT hr; + + TRACE("\n"); + + hr = CoGetCallContext(&IID_IServerSecurity, (void **)&pSrvSec); + if (SUCCEEDED(hr)) + { + hr = IServerSecurity_ImpersonateClient(pSrvSec); + IServerSecurity_Release(pSrvSec); + } + + return hr; +} + +/*********************************************************************** + * CoRevertToSelf [OLE32.@] + * + * Ends the impersonation of the client of the currently executing server + * call in the current thread. + * + * PARAMS + * None. + * + * RETURNS + * Success: S_OK. + * Failure: HRESULT code. + * + * SEE ALSO + * CoImpersonateClient, CoQueryClientBlanket, CoGetCallContext. + */ +HRESULT WINAPI CoRevertToSelf(void) +{ + IServerSecurity *pSrvSec; + HRESULT hr; + + TRACE("\n"); + + hr = CoGetCallContext(&IID_IServerSecurity, (void **)&pSrvSec); + if (SUCCEEDED(hr)) + { + hr = IServerSecurity_RevertToSelf(pSrvSec); + IServerSecurity_Release(pSrvSec); + } + + return hr; +} + static BOOL COM_PeekMessage(struct apartment *apt, MSG *msg) { /* first try to retrieve messages for incoming COM calls to the apartment window */ diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec index 26f7c6f..74f2bfc 100644 --- a/dlls/ole32/ole32.spec +++ b/dlls/ole32/ole32.spec @@ -20,7 +20,7 @@ @ stdcall CoFreeAllLibraries() @ stdcall CoFreeLibrary(long) @ stdcall CoFreeUnusedLibraries() -@ stub CoGetCallContext #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED +@ stdcall CoGetCallContext(ptr ptr) @ stub CoGetCallerTID @ stdcall CoGetClassObject(ptr long ptr ptr ptr) @ stub CoGetCurrentLogicalThreadId @@ -36,7 +36,7 @@ @ stdcall CoGetState(ptr) @ stub CoGetTIDFromIPID @ stdcall CoGetTreatAsClass(ptr ptr) -@ stub CoImpersonateClient +@ stdcall CoImpersonateClient() @ stdcall CoInitialize(ptr) @ stdcall CoInitializeEx(ptr long) @ stdcall CoInitializeSecurity(ptr long ptr ptr long long ptr long ptr) @@ -49,7 +49,7 @@ @ stdcall CoMarshalInterThreadInterfaceInStream(ptr ptr ptr) @ stdcall CoMarshalInterface(ptr ptr ptr long ptr long) @ stub CoQueryAuthenticationServices -@ stub CoQueryClientBlanket +@ stdcall CoQueryClientBlanket(ptr ptr ptr ptr ptr ptr ptr) @ stdcall CoQueryProxyBlanket(ptr ptr ptr ptr ptr ptr ptr ptr) @ stub CoQueryReleaseObject @ stub CoRegisterChannelHook @@ -61,7 +61,7 @@ @ stdcall CoReleaseMarshalData(ptr) @ stdcall CoReleaseServerProcess() @ stdcall CoResumeClassObjects() -@ stub CoRevertToSelf #@ stdcall () return 0,ERR_NOTIMPLEMENTED +@ stdcall CoRevertToSelf() @ stdcall CoRevokeClassObject(long) @ stdcall CoRevokeMallocSpy() @ stdcall CoSetProxyBlanket(ptr long long wstr long long ptr long)
1
0
0
0
Alexandre Julliard : shell32: Use the standard DEFINE_GUID macro to define GUIDs.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: b4629addbd8e5fd6792db3aa54b5520309a101f0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b4629addbd8e5fd6792db3a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 9 21:10:25 2006 +0200 shell32: Use the standard DEFINE_GUID macro to define GUIDs. --- dlls/shell32/regsvr.c | 3 ++- dlls/shell32/shfldr.h | 3 +++ dlls/shell32/shfldr_unixfs.c | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/regsvr.c b/dlls/shell32/regsvr.c index 5cf0dc7..1d37d4e 100644 --- a/dlls/shell32/regsvr.c +++ b/dlls/shell32/regsvr.c @@ -31,8 +31,9 @@ #include "winerror.h" #include "ole2.h" #include "shlguid.h" #include "shell32_main.h" -#include "shfldr.h" #include "shresdef.h" +#include "initguid.h" +#include "shfldr.h" #include "wine/debug.h" diff --git a/dlls/shell32/shfldr.h b/dlls/shell32/shfldr.h index 8fd557a..74f59d8 100644 --- a/dlls/shell32/shfldr.h +++ b/dlls/shell32/shfldr.h @@ -71,3 +71,6 @@ static inline int SHELL32_GUIDToStringW void SHELL_FS_ProcessDisplayFilename(LPWSTR szPath, DWORD dwFlags); BOOL SHELL_FS_HideExtension(LPWSTR pwszPath); + +DEFINE_GUID( CLSID_UnixFolder, 0xcc702eb2, 0x7dc5, 0x11d9, 0xc6, 0x87, 0x00, 0x04, 0x23, 0x8a, 0x01, 0xcd ); +DEFINE_GUID( CLSID_UnixDosFolder, 0x9d20aae8, 0x0625, 0x44b0, 0x9c, 0xa7, 0x71, 0x88, 0x9c, 0x22, 0x54, 0xd9 ); diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 4d72f97..b74b458 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -163,9 +163,6 @@ #include "pidl.h" WINE_DEFAULT_DEBUG_CHANNEL(shell); -const GUID CLSID_UnixFolder = {0xcc702eb2, 0x7dc5, 0x11d9, {0xc6, 0x87, 0x00, 0x04, 0x23, 0x8a, 0x01, 0xcd}}; -const GUID CLSID_UnixDosFolder = {0x9d20aae8, 0x0625, 0x44b0, {0x9c, 0xa7, 0x71, 0x88, 0x9c, 0x22, 0x54, 0xd9}}; - #define ADJUST_THIS(c,m,p) ((c*)(((long)p)-(long)&(((c*)0)->lp##m##Vtbl))) #define STATIC_CAST(i,p) ((i*)&p->lp##i##Vtbl)
1
0
0
0
Robert Shearman : ole32: Implement FTMarshalImpl_GetMarshalSizeMax.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 42c39675eab96bab80581d00ebc76ec2ae35a107 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=42c39675eab96bab80581d0…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Jun 9 17:24:32 2006 +0100 ole32: Implement FTMarshalImpl_GetMarshalSizeMax. --- dlls/ole32/ftmarshal.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index b9fd7da..7493bab 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -155,15 +155,14 @@ FTMarshalImpl_GetMarshalSizeMax (LPMARSH IMarshal *pMarshal = NULL; HRESULT hres; - FTMarshalImpl *This = impl_from_IMarshal(iface); - - FIXME ("(), stub!\n"); + TRACE("(%s, %p, 0x%lx, %p, 0x%lx, %p)\n", debugstr_guid(riid), pv, + dwDestContext, pvDestContext, mshlflags, pSize); /* if the marshalling happens inside the same process the interface pointer is copied between the apartments */ if (dwDestContext == MSHCTX_INPROC || dwDestContext == MSHCTX_CROSSCTX) { - *pSize = sizeof (This); - return S_OK; + *pSize = sizeof (mshlflags) + sizeof (pv) + sizeof (DWORD) + sizeof (GUID); + return S_OK; } /* use the standard marshaller to handle all other cases */
1
0
0
0
Alexandre Julliard : riched32: Use the standard DEFINE_GUID macro to define GUIDs.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 49b3837504258b7e2da295f30858a599a489c016 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=49b3837504258b7e2da295f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 9 21:10:01 2006 +0200 riched32: Use the standard DEFINE_GUID macro to define GUIDs. --- dlls/riched20/richole.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index 53ba711..497c0fc 100644 --- a/dlls/riched20/richole.c +++ b/dlls/riched20/richole.c @@ -36,23 +36,24 @@ #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(richedit); -typedef struct IRichEditOleImpl { - const IRichEditOleVtbl *lpVtbl; - LONG ref; - - ME_TextEditor *editor; -} IRichEditOleImpl; - /* there is no way to be consistent across different sets of headers - mingw, Wine, Win32 SDK*/ /* FIXME: the next 6 lines should be in textserv.h */ +#include "initguid.h" #define TEXTSERV_GUID(name, l, w1, w2, b1, b2) \ - GUID name = { l, w1, w2, {b1, b2, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5}} + DEFINE_GUID(name, l, w1, w2, b1, b2, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5) TEXTSERV_GUID(IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d); TEXTSERV_GUID(IID_ITextHost, 0xc5bdd8d0, 0xd26e, 0x11ce, 0xa8, 0x9e); TEXTSERV_GUID(IID_ITextHost2, 0xc5bdd8d0, 0xd26e, 0x11ce, 0xa8, 0x9e); +typedef struct IRichEditOleImpl { + const IRichEditOleVtbl *lpVtbl; + LONG ref; + + ME_TextEditor *editor; +} IRichEditOleImpl; + static HRESULT WINAPI IRichEditOle_fnQueryInterface(IRichEditOle *me, REFIID riid, LPVOID *ppvObj) {
1
0
0
0
Alexandre Julliard : ole32: Use the standard DEFINE_OLEGUID macro to define GUIDs.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 32f57b02147383506c2c59e0ce6bd0859b2c7fc9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=32f57b02147383506c2c59e…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 9 21:09:49 2006 +0200 ole32: Use the standard DEFINE_OLEGUID macro to define GUIDs. --- dlls/ole32/antimoniker.c | 4 ---- dlls/ole32/classmoniker.c | 4 ---- dlls/ole32/compobj_private.h | 5 +++-- dlls/ole32/compositemoniker.c | 4 ---- dlls/ole32/filemoniker.c | 4 ---- dlls/ole32/ftmarshal.c | 2 -- dlls/ole32/itemmoniker.c | 4 ---- dlls/ole32/moniker.h | 32 +++++++++++++++++++++++++++----- dlls/ole32/oleproxy.c | 3 --- dlls/ole32/regsvr.c | 3 ++- dlls/ole32/stubmanager.c | 2 -- 11 files changed, 32 insertions(+), 35 deletions(-) diff --git a/dlls/ole32/antimoniker.c b/dlls/ole32/antimoniker.c index 25007c3..53a39f5 100644 --- a/dlls/ole32/antimoniker.c +++ b/dlls/ole32/antimoniker.c @@ -35,10 +35,6 @@ #include "moniker.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const CLSID CLSID_AntiMoniker = { - 0x305, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - /* AntiMoniker data structure */ typedef struct AntiMonikerImpl{ diff --git a/dlls/ole32/classmoniker.c b/dlls/ole32/classmoniker.c index fdcb94b..e543a96 100644 --- a/dlls/ole32/classmoniker.c +++ b/dlls/ole32/classmoniker.c @@ -39,10 +39,6 @@ #include "moniker.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const GUID CLSID_ClassMoniker = { - 0x31A, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - #define CHARS_IN_GUID 39 /* ClassMoniker data structure */ diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index f9fac80..97519cf 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -41,8 +41,9 @@ #include "winternl.h" struct apartment; typedef struct apartment APARTMENT; -extern const CLSID CLSID_PSFactoryBuffer; -extern const CLSID CLSID_DfMarshal; +DEFINE_OLEGUID( CLSID_DfMarshal, 0x0000030b, 0, 0 ); +DEFINE_OLEGUID( CLSID_PSFactoryBuffer, 0x00000320, 0, 0 ); +DEFINE_OLEGUID( CLSID_InProcFreeMarshaler, 0x0000033a, 0, 0 ); /* Thread-safety Annotation Legend: * diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c index 860e8d0..4a65277 100644 --- a/dlls/ole32/compositemoniker.c +++ b/dlls/ole32/compositemoniker.c @@ -37,10 +37,6 @@ #include "moniker.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const CLSID CLSID_CompositeMoniker = { - 0x309, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - #define BLOCK_TAB_SIZE 5 /* represent the first size table and it's increment block size */ /* CompositeMoniker data structure */ diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index e251833..e9fb050 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -39,10 +39,6 @@ #include "compobj_private.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const CLSID CLSID_FileMoniker = { - 0x303, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - /* filemoniker data structure */ typedef struct FileMonikerImpl{ diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 9f41f65..b9fd7da 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -38,8 +38,6 @@ #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; diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c index b11c5f2..3a0b94d 100644 --- a/dlls/ole32/itemmoniker.c +++ b/dlls/ole32/itemmoniker.c @@ -38,10 +38,6 @@ #include "moniker.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const CLSID CLSID_ItemMoniker = { - 0x304, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - /* ItemMoniker data structure */ typedef struct ItemMonikerImpl{ diff --git a/dlls/ole32/moniker.h b/dlls/ole32/moniker.h index e051541..fa009cf 100644 --- a/dlls/ole32/moniker.h +++ b/dlls/ole32/moniker.h @@ -1,11 +1,33 @@ +/* + * Monikers + * + * Copyright 1998 Marcus Meissner + * Copyright 1999 Noomen Hamza + * Copyright 2005 Robert Shearman (for CodeWeavers) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef __WINE_MONIKER_H__ #define __WINE_MONIKER_H__ -extern const CLSID CLSID_FileMoniker; -extern const CLSID CLSID_ItemMoniker; -extern const CLSID CLSID_AntiMoniker; -extern const CLSID CLSID_CompositeMoniker; -extern const CLSID CLSID_ClassMoniker; +DEFINE_OLEGUID( CLSID_FileMoniker, 0x303, 0, 0 ); +DEFINE_OLEGUID( CLSID_ItemMoniker, 0x304, 0, 0 ); +DEFINE_OLEGUID( CLSID_AntiMoniker, 0x305, 0, 0 ); +DEFINE_OLEGUID( CLSID_CompositeMoniker, 0x309, 0, 0 ); +DEFINE_OLEGUID( CLSID_ClassMoniker, 0x31a, 0, 0 ); HRESULT FileMonikerCF_Create(REFIID riid, LPVOID *ppv); HRESULT ItemMonikerCF_Create(REFIID riid, LPVOID *ppv); diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 169dc4f..4e2ebb9 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -63,9 +63,6 @@ #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -const CLSID CLSID_DfMarshal = { 0x0000030b, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46} }; -const CLSID CLSID_PSFactoryBuffer = { 0x00000320, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46} }; - static ULONG WINAPI RURpcProxyBufferImpl_Release(LPRPCPROXYBUFFER iface); /* From:
http://msdn.microsoft.com/library/en-us/com/cmi_m_4lda.asp
diff --git a/dlls/ole32/regsvr.c b/dlls/ole32/regsvr.c index ff6aa85..03f0a06 100644 --- a/dlls/ole32/regsvr.c +++ b/dlls/ole32/regsvr.c @@ -30,9 +30,10 @@ #include "winreg.h" #include "winerror.h" #include "objbase.h" -#include "compobj_private.h" #include "ole2.h" #include "olectl.h" +#include "initguid.h" +#include "compobj_private.h" #include "moniker.h" #include "wine/debug.h" diff --git a/dlls/ole32/stubmanager.c b/dlls/ole32/stubmanager.c index f12ccdc..e5f8741 100644 --- a/dlls/ole32/stubmanager.c +++ b/dlls/ole32/stubmanager.c @@ -560,8 +560,6 @@ BOOL stub_manager_is_table_marshaled(str * interacts with stub managers. */ -const IID IID_IRemUnknown = { 0x00000131, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46} }; - typedef struct rem_unknown { const IRemUnknownVtbl *lpVtbl;
1
0
0
0
Alexandre Julliard : oleaut32: Use the standard DEFINE_OLEGUID macro to define GUIDs.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 707060913c4bc57582dbd6286e846ad059a5c1ac URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=707060913c4bc57582dbd62…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 9 21:09:35 2006 +0200 oleaut32: Use the standard DEFINE_OLEGUID macro to define GUIDs. --- dlls/oleaut32/oleaut.c | 9 --------- dlls/oleaut32/regsvr.c | 18 ++---------------- dlls/oleaut32/typelib.c | 3 --- dlls/oleaut32/typelib.h | 8 ++++++++ dlls/oleaut32/usrmarshal.c | 7 +------ 5 files changed, 11 insertions(+), 34 deletions(-) diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c index da18610..95b5fe8 100644 --- a/dlls/oleaut32/oleaut.c +++ b/dlls/oleaut32/oleaut.c @@ -38,15 +38,6 @@ #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); -/* The OLE Automation ProxyStub Interface Class (aka Typelib Marshaler) */ -extern const GUID CLSID_PSOAInterface; - -extern const GUID CLSID_PSDispatch; -extern const GUID CLSID_PSEnumVariant; -extern const GUID CLSID_PSTypeInfo; -extern const GUID CLSID_PSTypeLib; -extern const GUID CLSID_PSTypeComp; - static BOOL BSTR_bCache = TRUE; /* Cache allocations to minimise alloc calls? */ HMODULE OLEAUT32_hModule = NULL; diff --git a/dlls/oleaut32/regsvr.c b/dlls/oleaut32/regsvr.c index 2437967..1fd61d7 100644 --- a/dlls/oleaut32/regsvr.c +++ b/dlls/oleaut32/regsvr.c @@ -30,6 +30,8 @@ #include "winerror.h" #include "ole2.h" #include "olectl.h" #include "oleauto.h" +#include "initguid.h" +#include "typelib.h" #include "wine/debug.h" @@ -443,22 +445,6 @@ static LONG recursive_delete_keyW(HKEY b static GUID const CLSID_RecordInfo = { 0x0000002F, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; -extern GUID const CLSID_PSDispatch; - -GUID const CLSID_PSEnumVariant = { - 0x00020421, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; - -GUID const CLSID_PSTypeInfo = { - 0x00020422, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; - -GUID const CLSID_PSTypeLib = { - 0x00020423, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; - -GUID const CLSID_PSTypeComp = { - 0x00020425, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} }; - -extern GUID const CLSID_PSOAInterface; - static GUID const CLSID_OldFont = { 0x46763EE0, 0xCAB2, 0x11CE, {0x8C,0x20,0x00,0xAA,0x00,0x51,0xE5,0xD4} }; diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 21c69a9..619a286 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -82,9 +82,6 @@ #include "variant.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DECLARE_DEBUG_CHANNEL(typelib); -/* The OLE Automation ProxyStub Interface Class (aka Typelib Marshaler) */ -const GUID CLSID_PSOAInterface = { 0x00020424, 0, 0, { 0xC0, 0, 0, 0, 0, 0, 0, 0x46 } }; - static HRESULT typedescvt_to_variantvt(ITypeInfo *tinfo, const TYPEDESC *tdesc, VARTYPE *vt); static HRESULT TLB_AllocAndInitVarDesc(const VARDESC *src, VARDESC **dest_ptr); diff --git a/dlls/oleaut32/typelib.h b/dlls/oleaut32/typelib.h index 534856e..2ab2ebc 100644 --- a/dlls/oleaut32/typelib.h +++ b/dlls/oleaut32/typelib.h @@ -607,5 +607,13 @@ extern void dump_Variant(const VARIANT * HRESULT TMARSHAL_DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv); +/* The OLE Automation ProxyStub Interface Class (aka Typelib Marshaler) */ +DEFINE_OLEGUID( CLSID_PSDispatch, 0x00020420, 0x0000, 0x0000 ); +DEFINE_OLEGUID( CLSID_PSEnumVariant, 0x00020421, 0x0000, 0x0000 ); +DEFINE_OLEGUID( CLSID_PSTypeInfo, 0x00020422, 0x0000, 0x0000 ); +DEFINE_OLEGUID( CLSID_PSTypeLib, 0x00020423, 0x0000, 0x0000 ); +DEFINE_OLEGUID( CLSID_PSOAInterface, 0x00020424, 0x0000, 0x0000 ); +DEFINE_OLEGUID( CLSID_PSTypeComp, 0x00020425, 0x0000, 0x0000 ); + /*---------------------------END--------------------------------------------*/ #endif diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c index a2c81e5..90782c7 100644 --- a/dlls/oleaut32/usrmarshal.c +++ b/dlls/oleaut32/usrmarshal.c @@ -35,6 +35,7 @@ #include "winerror.h" #include "ole2.h" #include "oleauto.h" #include "rpcproxy.h" +#include "typelib.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); @@ -44,12 +45,6 @@ #define ALIGNED_POINTER(_Ptr, _Align) (( #define ALIGN_LENGTH(_Len, _Align) _Len = ALIGNED_LENGTH(_Len, _Align) #define ALIGN_POINTER(_Ptr, _Align) _Ptr = ALIGNED_POINTER(_Ptr, _Align) -/* FIXME: not supposed to be here */ - -const CLSID CLSID_PSDispatch = { - 0x20420, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46} -}; - static CStdPSFactoryBuffer PSFactoryBuffer; CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
1
0
0
0
Jason Green : wined3d: GLSL shader cleanup patch.
by Alexandre Julliard
09 Jun '06
09 Jun '06
Module: wine Branch: refs/heads/master Commit: 08295f4cfc3299f59be5959cb623a5399f5b07f6 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=08295f4cfc3299f59be5959…
Author: Jason Green <jave27(a)gmail.com> Date: Fri Jun 9 12:28:51 2006 -0400 wined3d: GLSL shader cleanup patch. - Based on comments from H. Verbeet - Changed the distinction from .rgba & .xyzw masks to only use .xyzw in GLSL shaders. They are interchangeable, and only served to make the trace look more intuitive, but they don't always apply as-is, so we'll just leave everything to .xyzw. - Got rid of the "UseProgramObjectARB(0)" call in drawprim. If there is no shader set on the next primitive, then that primitive will call UseProgramObjectARB(0) when it begins to draw. --- dlls/wined3d/drawprim.c | 23 +++++++---------------- dlls/wined3d/glsl_shader.c | 27 ++++++++------------------- 2 files changed, 15 insertions(+), 35 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index f12e046..b3c719b 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -1922,17 +1922,14 @@ #endif /* Bind the correct GLSL shader program based on the currently set vertex & pixel shaders. */ if (wined3d_settings.shader_mode == SHADER_GLSL) { - GLhandleARB programId; - set_glsl_shader_program(iface); - programId = This->stateBlock->shaderPrgId; - - if (programId != 0) { - /* Start using this program ID */ - TRACE_(d3d_shader)("Using GLSL program %u\n", programId); - GL_EXTCALL(glUseProgramObjectARB(programId)); - checkGLcall("glUseProgramObjectARB"); - } + /* Start using this program ID (if it's 0, there is no shader program to use, so + * glUseProgramObjectARB(0) will disable the use of any shaders) */ + if (This->stateBlock->shaderPrgId) { + TRACE_(d3d_shader)("Using GLSL program %u\n", This->stateBlock->shaderPrgId); + } + GL_EXTCALL(glUseProgramObjectARB(This->stateBlock->shaderPrgId)); + checkGLcall("glUseProgramObjectARB"); } if (useVertexShaderFunction) { @@ -2017,12 +2014,6 @@ #endif if (usePixelShaderFunction && wined3d_settings.shader_mode == SHADER_ARB) { glDisable(GL_FRAGMENT_PROGRAM_ARB); } - - /* Cleanup GLSL program */ - if (wined3d_settings.shader_mode == SHADER_GLSL - && (useVertexShaderFunction || usePixelShaderFunction)) { - GL_EXTCALL(glUseProgramObjectARB(0)); - } } } diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 7c2468e..f8385e0 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -271,34 +271,26 @@ void shader_glsl_get_register_name( /* Writes the GLSL writemask for the destination register */ void shader_glsl_get_output_register_swizzle( - IWineD3DBaseShader *shader, const DWORD param, char *write_mask) { - IWineD3DBaseShaderImpl *This = (IWineD3DBaseShaderImpl*) shader; - BOOL pshader = shader_is_pshader_version(This->baseShader.hex_version); - *write_mask = 0; if ((param & D3DSP_WRITEMASK_ALL) != D3DSP_WRITEMASK_ALL) { strcat(write_mask, "."); - if (param & D3DSP_WRITEMASK_0) strcat(write_mask, pshader ? "r" : "x"); - if (param & D3DSP_WRITEMASK_1) strcat(write_mask, pshader ? "g" : "y"); - if (param & D3DSP_WRITEMASK_2) strcat(write_mask, pshader ? "b" : "z"); - if (param & D3DSP_WRITEMASK_3) strcat(write_mask, pshader ? "a" : "w"); + if (param & D3DSP_WRITEMASK_0) strcat(write_mask, "x"); + if (param & D3DSP_WRITEMASK_1) strcat(write_mask, "y"); + if (param & D3DSP_WRITEMASK_2) strcat(write_mask, "z"); + if (param & D3DSP_WRITEMASK_3) strcat(write_mask, "w"); } } void shader_glsl_get_input_register_swizzle( - IWineD3DBaseShader *shader, const DWORD param, BOOL is_color, char *reg_mask) { - IWineD3DBaseShaderImpl *This = (IWineD3DBaseShaderImpl*) shader; - BOOL pshader = shader_is_pshader_version(This->baseShader.hex_version); - - char swizzle_reg_chars_color_fix[5]; - char swizzle_reg_chars[5]; + const char swizzle_reg_chars_color_fix[] = "zyxw"; + const char swizzle_reg_chars[] = "xyzw"; const char* swizzle_regs = NULL; /** operand input */ @@ -308,9 +300,6 @@ void shader_glsl_get_input_register_swiz DWORD swizzle_z = (swizzle >> 4) & 0x03; DWORD swizzle_w = (swizzle >> 6) & 0x03; - strcpy(swizzle_reg_chars_color_fix, pshader ? "bgra" : "zyxw"); - strcpy(swizzle_reg_chars, pshader ? "rgba" : "xyzw"); - if (is_color) { swizzle_regs = swizzle_reg_chars_color_fix; } else { @@ -363,10 +352,10 @@ void shader_glsl_add_param( shader_glsl_get_register_name(param, addr_token, reg_name, &is_color, arg); if (is_input) { - shader_glsl_get_input_register_swizzle(arg->shader, param, is_color, reg_mask); + shader_glsl_get_input_register_swizzle(param, is_color, reg_mask); shader_glsl_gen_modifier(param, reg_name, reg_mask, out_str); } else { - shader_glsl_get_output_register_swizzle(arg->shader, param, reg_mask); + shader_glsl_get_output_register_swizzle(param, reg_mask); sprintf(out_str, "%s%s", reg_name, reg_mask); } }
1
0
0
0
← Newer
1
...
59
60
61
62
63
64
65
...
86
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
Results per page:
10
25
50
100
200