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
August 2011
----- 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
2 participants
770 discussions
Start a n
N
ew thread
Jacek Caban : msi: Ude default calling convention for internal functions.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 9ef5af540b560fd16c77efdc32f974bbf8dca3a3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9ef5af540b560fd16c77efdc3…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Aug 31 16:15:22 2011 +0200 msi: Ude default calling convention for internal functions. --- dlls/msi/automation.c | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c index 1be56b1..8dc1e44 100644 --- a/dlls/msi/automation.c +++ b/dlls/msi/automation.c @@ -67,7 +67,7 @@ struct AutomationObject { MSIHANDLE msiHandle; /* A function that is called from AutomationObject::Invoke, specific to this type of object. */ - HRESULT (STDMETHODCALLTYPE *funcInvoke)( + HRESULT (*funcInvoke)( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -80,7 +80,7 @@ struct AutomationObject { /* A function that is called from AutomationObject::Release when the object is being freed to free any private * data structures (or NULL) */ - void (STDMETHODCALLTYPE *funcFree)(AutomationObject* This); + void (*funcFree)(AutomationObject* This); }; /* @@ -151,11 +151,9 @@ HRESULT load_type_info(IDispatch *iface, ITypeInfo **pptinfo, REFIID clsid, LCID /* Create the automation object, placing the result in the pointer ppObj. The automation object is created * with the appropriate clsid and invocation function. */ -static HRESULT create_automation_object(MSIHANDLE msiHandle, IUnknown *pUnkOuter, LPVOID *ppObj, REFIID clsid, - HRESULT (STDMETHODCALLTYPE *funcInvoke)(AutomationObject*,DISPID,REFIID,LCID,WORD,DISPPARAMS*, - VARIANT*,EXCEPINFO*,UINT*), - void (STDMETHODCALLTYPE *funcFree)(AutomationObject*), - SIZE_T sizetPrivateData) +static HRESULT create_automation_object(MSIHANDLE msiHandle, IUnknown *pUnkOuter, void **ppObj, REFIID clsid, + HRESULT (*funcInvoke)(AutomationObject*,DISPID,REFIID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*,UINT*), + void (*funcFree)(AutomationObject*), SIZE_T sizetPrivateData) { AutomationObject *object; HRESULT hr; @@ -732,7 +730,7 @@ static HRESULT DispGetParam_CopyOnly( &pdispparams->rgvarg[pos]); } -static HRESULT WINAPI SummaryInfoImpl_Invoke( +static HRESULT SummaryInfoImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -884,7 +882,7 @@ static HRESULT WINAPI SummaryInfoImpl_Invoke( return S_OK; } -static HRESULT WINAPI RecordImpl_Invoke( +static HRESULT RecordImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -975,7 +973,7 @@ static HRESULT WINAPI RecordImpl_Invoke( return S_OK; } -static HRESULT WINAPI ListImpl_Invoke( +static HRESULT ListImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -1034,7 +1032,7 @@ static HRESULT WINAPI ListImpl_Invoke( return S_OK; } -static void WINAPI ListImpl_Free(AutomationObject *This) +static void ListImpl_Free(AutomationObject *This) { ListData *data = private_data(This); ULONG idx; @@ -1044,7 +1042,7 @@ static void WINAPI ListImpl_Free(AutomationObject *This) msi_free(data->pVars); } -static HRESULT WINAPI ViewImpl_Invoke( +static HRESULT ViewImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -1151,7 +1149,7 @@ static HRESULT DatabaseImpl_LastErrorRecord(WORD wFlags, return S_OK; } -static HRESULT WINAPI DatabaseImpl_Invoke( +static HRESULT DatabaseImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -1236,7 +1234,7 @@ static HRESULT WINAPI DatabaseImpl_Invoke( return S_OK; } -static HRESULT WINAPI SessionImpl_Invoke( +static HRESULT SessionImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid, @@ -2306,7 +2304,7 @@ done: return hr; } -static HRESULT WINAPI InstallerImpl_Invoke( +static HRESULT InstallerImpl_Invoke( AutomationObject* This, DISPID dispIdMember, REFIID riid,
1
0
0
0
Jacek Caban : msi: Use struct instead of interface in object declarations.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 81031c532eac726e95e6cf506c8d7de9f0bf3c4b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=81031c532eac726e95e6cf506…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Aug 31 16:15:12 2011 +0200 msi: Use struct instead of interface in object declarations. --- dlls/msi/automation.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c index d6ef5c9..1be56b1 100644 --- a/dlls/msi/automation.c +++ b/dlls/msi/automation.c @@ -47,9 +47,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi); * called from AutomationObject::Invoke, and pass this function to create_automation_object. */ -typedef interface AutomationObject AutomationObject; +typedef struct AutomationObject AutomationObject; -interface AutomationObject { +struct AutomationObject { /* * VTables - We provide IDispatch, IProvideClassInfo, IProvideClassInfo2, IProvideMultipleClassInfo */ @@ -87,9 +87,7 @@ interface AutomationObject { * ListEnumerator - IEnumVARIANT implementation for MSI automation lists. */ -typedef interface ListEnumerator ListEnumerator; - -interface ListEnumerator { +typedef struct { /* VTables */ const IEnumVARIANTVtbl *lpVtbl; @@ -99,7 +97,7 @@ interface ListEnumerator { /* Current position and pointer to AutomationObject that stores actual data */ ULONG ulPos; AutomationObject *pObj; -}; +} ListEnumerator; /* * Structures for additional data required by specific automation objects
1
0
0
0
Michael Stefaniuc : shell32: Move ISvBgCm_Constructor() to avoid a forward declaration.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 6419969c386ef4103e20290b2846275967022b5c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6419969c386ef4103e20290b2…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Aug 31 14:16:37 2011 +0200 shell32: Move ISvBgCm_Constructor() to avoid a forward declaration. --- dlls/shell32/shv_bg_cmenu.c | 36 +++++++++++++++--------------------- 1 files changed, 15 insertions(+), 21 deletions(-) diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c index 7b9e6c6..b67dc4d 100644 --- a/dlls/shell32/shv_bg_cmenu.c +++ b/dlls/shell32/shv_bg_cmenu.c @@ -49,33 +49,12 @@ typedef struct UINT verb_offset; } BgCmImpl; - -static const IContextMenu2Vtbl cmvt; - static inline BgCmImpl *impl_from_IContextMenu2(IContextMenu2 *iface) { return CONTAINING_RECORD(iface, BgCmImpl, IContextMenu2_iface); } /************************************************************************** -* ISVBgCm_Constructor() -*/ -IContextMenu2 *ISvBgCm_Constructor(IShellFolder* pSFParent, BOOL bDesktop) -{ - BgCmImpl* cm; - - cm = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(BgCmImpl)); - cm->IContextMenu2_iface.lpVtbl = &cmvt; - cm->ref = 1; - cm->pSFParent = pSFParent; - cm->bDesktop = bDesktop; - if(pSFParent) IShellFolder_AddRef(pSFParent); - - TRACE("(%p)->()\n",cm); - return &cm->IContextMenu2_iface; -} - -/************************************************************************** * ISVBgCm_fnQueryInterface */ static HRESULT WINAPI ISVBgCm_fnQueryInterface(IContextMenu2 *iface, REFIID riid, LPVOID *ppvObj) @@ -461,3 +440,18 @@ static const IContextMenu2Vtbl cmvt = ISVBgCm_fnGetCommandString, ISVBgCm_fnHandleMenuMsg }; + +IContextMenu2 *ISvBgCm_Constructor(IShellFolder *pSFParent, BOOL bDesktop) +{ + BgCmImpl *cm; + + cm = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*cm)); + cm->IContextMenu2_iface.lpVtbl = &cmvt; + cm->ref = 1; + cm->pSFParent = pSFParent; + cm->bDesktop = bDesktop; + if(pSFParent) IShellFolder_AddRef(pSFParent); + + TRACE("(%p)->()\n", cm); + return &cm->IContextMenu2_iface; +}
1
0
0
0
Michael Stefaniuc : shell32: COM cleanup in shv_bg_cmenu.c.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 47a705965b8f5c9ca5fdd42e54df3a9a104bdcad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=47a705965b8f5c9ca5fdd42e5…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Aug 31 14:15:45 2011 +0200 shell32: COM cleanup in shv_bg_cmenu.c. --- dlls/shell32/shv_bg_cmenu.c | 33 ++++++++++++++++++--------------- 1 files changed, 18 insertions(+), 15 deletions(-) diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c index bd99d3a..7b9e6c6 100644 --- a/dlls/shell32/shv_bg_cmenu.c +++ b/dlls/shell32/shv_bg_cmenu.c @@ -42,7 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell); */ typedef struct { - const IContextMenu2Vtbl *lpVtbl; + IContextMenu2 IContextMenu2_iface; IShellFolder* pSFParent; LONG ref; BOOL bDesktop; @@ -52,6 +52,11 @@ typedef struct static const IContextMenu2Vtbl cmvt; +static inline BgCmImpl *impl_from_IContextMenu2(IContextMenu2 *iface) +{ + return CONTAINING_RECORD(iface, BgCmImpl, IContextMenu2_iface); +} + /************************************************************************** * ISVBgCm_Constructor() */ @@ -60,14 +65,14 @@ IContextMenu2 *ISvBgCm_Constructor(IShellFolder* pSFParent, BOOL bDesktop) BgCmImpl* cm; cm = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(BgCmImpl)); - cm->lpVtbl = &cmvt; + cm->IContextMenu2_iface.lpVtbl = &cmvt; cm->ref = 1; cm->pSFParent = pSFParent; cm->bDesktop = bDesktop; if(pSFParent) IShellFolder_AddRef(pSFParent); TRACE("(%p)->()\n",cm); - return (IContextMenu2*)cm; + return &cm->IContextMenu2_iface; } /************************************************************************** @@ -75,7 +80,7 @@ IContextMenu2 *ISvBgCm_Constructor(IShellFolder* pSFParent, BOOL bDesktop) */ static HRESULT WINAPI ISVBgCm_fnQueryInterface(IContextMenu2 *iface, REFIID riid, LPVOID *ppvObj) { - BgCmImpl *This = (BgCmImpl *)iface; + BgCmImpl *This = impl_from_IContextMenu2(iface); TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,debugstr_guid(riid),ppvObj); @@ -107,7 +112,7 @@ static HRESULT WINAPI ISVBgCm_fnQueryInterface(IContextMenu2 *iface, REFIID riid */ static ULONG WINAPI ISVBgCm_fnAddRef(IContextMenu2 *iface) { - BgCmImpl *This = (BgCmImpl *)iface; + BgCmImpl *This = impl_from_IContextMenu2(iface); ULONG refCount = InterlockedIncrement(&This->ref); TRACE("(%p)->(count=%u)\n", This, refCount - 1); @@ -120,7 +125,7 @@ static ULONG WINAPI ISVBgCm_fnAddRef(IContextMenu2 *iface) */ static ULONG WINAPI ISVBgCm_fnRelease(IContextMenu2 *iface) { - BgCmImpl *This = (BgCmImpl *)iface; + BgCmImpl *This = impl_from_IContextMenu2(iface); ULONG refCount = InterlockedDecrement(&This->ref); TRACE("(%p)->(count=%i)\n", This, refCount + 1); @@ -149,12 +154,11 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu( UINT idCmdLast, UINT uFlags) { - HMENU hMyMenu; - UINT idMax; + BgCmImpl *This = impl_from_IContextMenu2(iface); + HMENU hMyMenu; + UINT idMax; HRESULT hr; - BgCmImpl *This = (BgCmImpl *)iface; - TRACE("(%p)->(hmenu=%p indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )\n", This, hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags); @@ -318,9 +322,8 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand( IContextMenu2 *iface, LPCMINVOKECOMMANDINFO lpcmi) { - BgCmImpl *This = (BgCmImpl *)iface; - - LPSHELLBROWSER lpSB; + BgCmImpl *This = impl_from_IContextMenu2(iface); + LPSHELLBROWSER lpSB; LPSHELLVIEW lpSV = NULL; HWND hWndSV = 0; @@ -405,7 +408,7 @@ static HRESULT WINAPI ISVBgCm_fnGetCommandString( LPSTR lpszName, UINT uMaxNameLen) { - BgCmImpl *This = (BgCmImpl *)iface; + BgCmImpl *This = impl_from_IContextMenu2(iface); TRACE("(%p)->(idcom=%lx flags=%x %p name=%p len=%x)\n",This, idCommand, uFlags, lpReserved, lpszName, uMaxNameLen); @@ -437,7 +440,7 @@ static HRESULT WINAPI ISVBgCm_fnHandleMenuMsg( WPARAM wParam, LPARAM lParam) { - BgCmImpl *This = (BgCmImpl *)iface; + BgCmImpl *This = impl_from_IContextMenu2(iface); FIXME("(%p)->(msg=%x wp=%lx lp=%lx)\n",This, uMsg, wParam, lParam);
1
0
0
0
Michael Stefaniuc : shell32: Pass objects instead of ifaces to helpers.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 2cf8335d70044c6c33c0499650eb8f9e6daa4fde URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2cf8335d70044c6c33c049965…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Aug 31 14:14:10 2011 +0200 shell32: Pass objects instead of ifaces to helpers. --- dlls/shell32/shv_bg_cmenu.c | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c index 5b1b434..bd99d3a 100644 --- a/dlls/shell32/shv_bg_cmenu.c +++ b/dlls/shell32/shv_bg_cmenu.c @@ -189,10 +189,9 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu( * DoNewFolder */ static void DoNewFolder( - IContextMenu2 *iface, + BgCmImpl *This, IShellView *psv) { - BgCmImpl *This = (BgCmImpl *)iface; ISFHelper * psfhlp; WCHAR wszName[MAX_PATH]; @@ -220,9 +219,8 @@ static void DoNewFolder( * DoPaste */ static BOOL DoPaste( - IContextMenu2 *iface) + BgCmImpl *This) { - BgCmImpl *This = (BgCmImpl *)iface; BOOL bSuccess = FALSE; IDataObject * pda; @@ -343,7 +341,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand( if (! strcmp(lpcmi->lpVerb,CMDSTR_NEWFOLDERA)) { - DoNewFolder(iface, lpSV); + DoNewFolder(This, lpSV); } else if (! strcmp(lpcmi->lpVerb,CMDSTR_VIEWLISTA)) { @@ -367,11 +365,11 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand( break; case FCIDM_SHVIEW_NEWFOLDER: - DoNewFolder(iface, lpSV); + DoNewFolder(This, lpSV); break; case FCIDM_SHVIEW_INSERT: - DoPaste(iface); + DoPaste(This); break; case FCIDM_SHVIEW_PROPERTIES:
1
0
0
0
Octavian Voicu : ole32: Fix a few incorrect pointer/integer casts on 64-bit .
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 9b1fc0fd74d48bffb3987bb3c59088b2fd16d607 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b1fc0fd74d48bffb3987bb3c…
Author: Octavian Voicu <octavian.voicu(a)gmail.com> Date: Wed Aug 31 13:52:02 2011 +0300 ole32: Fix a few incorrect pointer/integer casts on 64-bit. --- dlls/ole32/pointermoniker.c | 2 +- dlls/ole32/tests/moniker.c | 4 ++-- dlls/ole32/usrmarshal.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/ole32/pointermoniker.c b/dlls/ole32/pointermoniker.c index d79afd2..d39be1d 100644 --- a/dlls/ole32/pointermoniker.c +++ b/dlls/ole32/pointermoniker.c @@ -370,7 +370,7 @@ static HRESULT WINAPI PointerMonikerImpl_Hash(IMoniker* iface,DWORD* pdwHash) if (pdwHash==NULL) return E_POINTER; - *pdwHash = (DWORD)This->pObject; + *pdwHash = PtrToUlong(This->pObject); return S_OK; } diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c index 54a5f8c..aa57b9b 100644 --- a/dlls/ole32/tests/moniker.c +++ b/dlls/ole32/tests/moniker.c @@ -1780,9 +1780,9 @@ static void test_pointer_moniker(void) /* Hashing */ hr = IMoniker_Hash(moniker, &hash); ok_ole_success(hr, IMoniker_Hash); - ok(hash == (DWORD)&Test_ClassFactory, + ok(hash == PtrToUlong(&Test_ClassFactory), "Hash value should have been 0x%08x, instead of 0x%08x\n", - (DWORD)&Test_ClassFactory, hash); + PtrToUlong(&Test_ClassFactory), hash); /* IsSystemMoniker test */ hr = IMoniker_IsSystemMoniker(moniker, &moniker_type); diff --git a/dlls/ole32/usrmarshal.c b/dlls/ole32/usrmarshal.c index 2d238e6..8f5feef 100644 --- a/dlls/ole32/usrmarshal.c +++ b/dlls/ole32/usrmarshal.c @@ -429,7 +429,7 @@ unsigned char * __RPC_USER HGLOBAL_UserMarshal(ULONG *pFlags, unsigned char *pBu { *(ULONG *)pBuffer = WDT_REMOTE_CALL; pBuffer += sizeof(ULONG); - *(ULONG *)pBuffer = (ULONG)*phGlobal; + *(ULONG *)pBuffer = HandleToULong(*phGlobal); pBuffer += sizeof(ULONG); if (*phGlobal) { @@ -437,7 +437,7 @@ unsigned char * __RPC_USER HGLOBAL_UserMarshal(ULONG *pFlags, unsigned char *pBu SIZE_T size = GlobalSize(*phGlobal); *(ULONG *)pBuffer = (ULONG)size; pBuffer += sizeof(ULONG); - *(ULONG *)pBuffer = (ULONG)*phGlobal; + *(ULONG *)pBuffer = HandleToULong(*phGlobal); pBuffer += sizeof(ULONG); *(ULONG *)pBuffer = (ULONG)size; pBuffer += sizeof(ULONG);
1
0
0
0
Octavian Voicu : ieframe: Fix a few incorrect pointer/ integer casts on 64-bit.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: f8d0afe4355d5054359585f61bef846f66d0e9df URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f8d0afe4355d5054359585f61…
Author: Octavian Voicu <octavian.voicu(a)gmail.com> Date: Wed Aug 31 13:51:24 2011 +0300 ieframe: Fix a few incorrect pointer/integer casts on 64-bit. --- dlls/ieframe/iexplore.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/ieframe/iexplore.c b/dlls/ieframe/iexplore.c index 99e3003..d5fd56c 100644 --- a/dlls/ieframe/iexplore.c +++ b/dlls/ieframe/iexplore.c @@ -873,7 +873,7 @@ static BOOL create_ie_window(LPCSTR cmdline) return TRUE; } -static ULONG open_dde_url(WCHAR *dde_url) +static HDDEDATA open_dde_url(WCHAR *dde_url) { InternetExplorer *ie = NULL, *iter; WCHAR *url, *url_end; @@ -928,7 +928,7 @@ static ULONG open_dde_url(WCHAR *dde_url) return 0; IWebBrowser2_Release(&ie->IWebBrowser2_iface); - return DDE_FACK; + return ULongToHandle(DDE_FACK); } static HDDEDATA WINAPI dde_proc(UINT type, UINT uFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA data, @@ -937,7 +937,7 @@ static HDDEDATA WINAPI dde_proc(UINT type, UINT uFmt, HCONV hConv, HSZ hsz1, HSZ switch(type) { case XTYP_CONNECT: TRACE("XTYP_CONNECT %p\n", hsz1); - return (HDDEDATA)!DdeCmpStringHandles(hsz1, ddestr_openurl); + return ULongToHandle(!DdeCmpStringHandles(hsz1, ddestr_openurl)); case XTYP_EXECUTE: { WCHAR *url; @@ -961,7 +961,7 @@ static HDDEDATA WINAPI dde_proc(UINT type, UINT uFmt, HCONV hConv, HSZ hsz1, HSZ break; } - ret = (HDDEDATA)open_dde_url(url); + ret = open_dde_url(url); heap_free(url); return ret; @@ -999,7 +999,7 @@ static void init_dde(void) if(!ddestr_openurl) WARN("Failed to create string handle: %u\n", DdeGetLastError(dde_inst)); - res = (ULONG)DdeNameService(dde_inst, ddestr_iexplore, 0, DNS_REGISTER); + res = HandleToULong(DdeNameService(dde_inst, ddestr_iexplore, 0, DNS_REGISTER)); if(res != DMLERR_NO_ERROR) WARN("DdeNameService failed: %u\n", res); }
1
0
0
0
Octavian Voicu : msxml3/tests: Fix a warning in saxreader tests when compiling on x64.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 9e3d83e003f89cc3f8666d88e90d94b0e266ed69 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9e3d83e003f89cc3f8666d88e…
Author: Octavian Voicu <octavian.voicu(a)gmail.com> Date: Wed Aug 31 02:20:59 2011 +0300 msxml3/tests: Fix a warning in saxreader tests when compiling on x64. --- dlls/msxml3/tests/saxreader.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c index b5800d0..8a75211 100644 --- a/dlls/msxml3/tests/saxreader.c +++ b/dlls/msxml3/tests/saxreader.c @@ -1934,7 +1934,7 @@ static void test_mxwriter_stream(void) IMXWriter_Release(writer); ok(current_write_test->last, "The last %d write calls on test %d were missed\n", - current_write_test-test->expected_writes, current_stream_test_index); + (int)(current_write_test-test->expected_writes), current_stream_test_index); } hr = CoCreateInstance(&CLSID_MXXMLWriter, NULL, CLSCTX_INPROC_SERVER,
1
0
0
0
Frédéric Delanoy : cmd/tests: Add pushd/ popd tests.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: ba094f2830c460174557a3c5726025eb1a1bd3ad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ba094f2830c460174557a3c57…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Tue Aug 30 23:33:52 2011 +0200 cmd/tests: Add pushd/popd tests. --- programs/cmd/tests/test_builtins.cmd | 33 ++++++++++++++++++++++++++++++ programs/cmd/tests/test_builtins.cmd.exp | 15 +++++++++++++ 2 files changed, 48 insertions(+), 0 deletions(-) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index f473b91..5bd375e 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -1027,6 +1027,39 @@ if not exist foobar (echo foobar removed) else echo foobar not removed! if not exist bar\baz (echo bar\baz removed) else echo bar\baz not removed! cd .. & rd /s/q foobaz +echo ----------- Testing pushd/popd ----------- +cd +echo ...popd is no-op when dir stack is empty +popd +cd +echo ...pushing non-existing dir +pushd foobar +cd +echo ...basic behaviour +mkdir foobar\baz +pushd foobar +cd +popd +cd +pushd foobar +pushd baz +cd +popd +cd +pushd baz +popd +cd +popd +cd +pushd . +cd foobar\baz +pushd .. +cd +popd +popd +cd +rd /s/q foobar + echo ------------ Testing attrib -------------- rem FIXME Add tests for archive, hidden and system attributes + mixed attributes modifications mkdir foobar & cd foobar diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index 5419476..c67b10f 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -634,6 +634,21 @@ foo removed bar removed foobar removed bar\baz removed +----------- Testing pushd/popd ----------- +@pwd@ +...popd is no-op when dir stack is empty +@pwd@ +...pushing non-existing dir +@pwd@ +...basic behaviour +@pwd@\foobar +@pwd@ +@pwd@\foobar\baz +@pwd@\foobar +@pwd@\foobar +@pwd@ +@pwd@\foobar +@pwd@ ------------ Testing attrib -------------- @todo_wine@A @pwd@\foobar\foo@or_broken@A @pwd@\foobar\foo@or_broken@A I @pwd@\foobar\foo ... read-only attribute
1
0
0
0
Michael Mc Donnell : d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateTextW.
by Alexandre Julliard
31 Aug '11
31 Aug '11
Module: wine Branch: master Commit: 2f1917956b9a568682822a851139821f548ac8b9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2f1917956b9a568682822a851…
Author: Michael Mc Donnell <michael(a)mcdonnell.dk> Date: Fri Aug 19 19:05:52 2011 +0200 d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateTextW. --- dlls/d3dx9_36/mesh.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index d07d4bd..04ee7d0 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -5344,11 +5344,11 @@ HRESULT WINAPI D3DXCreateTextW(LPDIRECT3DDEVICE9 device, if (FAILED(hr)) goto error; - hr = mesh->lpVtbl->LockVertexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&vertices); + hr = mesh->lpVtbl->LockVertexBuffer(mesh, 0, (LPVOID *)&vertices); if (FAILED(hr)) goto error; - hr = mesh->lpVtbl->LockIndexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&faces); + hr = mesh->lpVtbl->LockIndexBuffer(mesh, 0, (LPVOID *)&faces); if (FAILED(hr)) goto error;
1
0
0
0
← Newer
1
2
3
4
5
...
77
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
Results per page:
10
25
50
100
200