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
May 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
945 discussions
Start a n
N
ew thread
Gerald Pfeifer : imaadp32.acm: Remove ADPCM_drvOpen which is only a stub.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: d73b27d80617a4eb451440b1caa5c9a3d8b0bf3e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d73b27d80617a4eb451440b1c…
Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Sun May 22 20:55:35 2011 +0200 imaadp32.acm: Remove ADPCM_drvOpen which is only a stub. --- dlls/imaadp32.acm/imaadp32.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/dlls/imaadp32.acm/imaadp32.c b/dlls/imaadp32.acm/imaadp32.c index 4e59448..a315d06 100644 --- a/dlls/imaadp32.acm/imaadp32.c +++ b/dlls/imaadp32.acm/imaadp32.c @@ -38,14 +38,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(adpcm); /*********************************************************************** - * ADPCM_drvOpen - */ -static LRESULT ADPCM_drvOpen(LPCSTR str) -{ - return 1; -} - -/*********************************************************************** * ADPCM_drvClose */ static LRESULT ADPCM_drvClose(DWORD_PTR dwDevID) @@ -928,7 +920,7 @@ LRESULT CALLBACK ADPCM_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg, { case DRV_LOAD: return 1; case DRV_FREE: return 1; - case DRV_OPEN: return ADPCM_drvOpen((LPSTR)dwParam1); + case DRV_OPEN: return 1; case DRV_CLOSE: return ADPCM_drvClose(dwDevID); case DRV_ENABLE: return 1; case DRV_DISABLE: return 1;
1
0
0
0
Gerald Pfeifer : iphlpapi: Make addrLen unsigned in getInterfacePhysicalByName.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: c053e6680cc4030184415c82e681cd421c78a9de URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c053e6680cc4030184415c82e…
Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Sun May 22 20:54:45 2011 +0200 iphlpapi: Make addrLen unsigned in getInterfacePhysicalByName. --- dlls/iphlpapi/ifenum.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c index c998b93..a0d7577 100644 --- a/dlls/iphlpapi/ifenum.c +++ b/dlls/iphlpapi/ifenum.c @@ -473,7 +473,7 @@ static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr u_char *p, *buf; size_t mibLen; int mib[] = { CTL_NET, AF_ROUTE, 0, AF_LINK, NET_RT_IFLIST, 0 }; - int addrLen; + unsigned addrLen; BOOL found = FALSE; if (!name || !len || !addr || !type)
1
0
0
0
Michael Stefaniuc : shell32: Finish the COM cleanup in shelllink.c.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: 4ecd6e793405657b3a4268aa74a7f05e74cae439 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4ecd6e793405657b3a4268aa7…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon May 23 01:05:19 2011 +0200 shell32: Finish the COM cleanup in shelllink.c. --- dlls/shell32/shelllink.c | 84 +++++++++++++++++++++++----------------------- 1 files changed, 42 insertions(+), 42 deletions(-) diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c index a0fe6ce..07fe7aa 100644 --- a/dlls/shell32/shelllink.c +++ b/dlls/shell32/shelllink.c @@ -129,13 +129,13 @@ static const IObjectWithSiteVtbl owsvt; typedef struct { IShellLinkA IShellLinkA_iface; - const IShellLinkWVtbl *lpvtblw; - const IPersistFileVtbl *lpvtblPersistFile; - const IPersistStreamVtbl *lpvtblPersistStream; - const IShellLinkDataListVtbl *lpvtblShellLinkDataList; - const IShellExtInitVtbl *lpvtblShellExtInit; - const IContextMenuVtbl *lpvtblContextMenu; - const IObjectWithSiteVtbl *lpvtblObjectWithSite; + IShellLinkW IShellLinkW_iface; + IPersistFile IPersistFile_iface; + IPersistStream IPersistStream_iface; + IShellLinkDataList IShellLinkDataList_iface; + IShellExtInit IShellExtInit_iface; + IContextMenu IContextMenu_iface; + IObjectWithSite IObjectWithSite_iface; LONG ref; @@ -170,39 +170,39 @@ static inline IShellLinkImpl *impl_from_IShellLinkA(IShellLinkA *iface) return CONTAINING_RECORD(iface, IShellLinkImpl, IShellLinkA_iface); } -static inline IShellLinkImpl *impl_from_IShellLinkW( IShellLinkW *iface ) +static inline IShellLinkImpl *impl_from_IShellLinkW(IShellLinkW *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblw)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IShellLinkW_iface); } -static inline IShellLinkImpl *impl_from_IPersistFile( IPersistFile *iface ) +static inline IShellLinkImpl *impl_from_IPersistFile(IPersistFile *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblPersistFile)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IPersistFile_iface); } -static inline IShellLinkImpl *impl_from_IPersistStream( IPersistStream *iface ) +static inline IShellLinkImpl *impl_from_IPersistStream(IPersistStream *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblPersistStream)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IPersistStream_iface); } -static inline IShellLinkImpl *impl_from_IShellLinkDataList( IShellLinkDataList *iface ) +static inline IShellLinkImpl *impl_from_IShellLinkDataList(IShellLinkDataList *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblShellLinkDataList)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IShellLinkDataList_iface); } -static inline IShellLinkImpl *impl_from_IShellExtInit( IShellExtInit *iface ) +static inline IShellLinkImpl *impl_from_IShellExtInit(IShellExtInit *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblShellExtInit)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IShellExtInit_iface); } -static inline IShellLinkImpl *impl_from_IContextMenu( IContextMenu *iface ) +static inline IShellLinkImpl *impl_from_IContextMenu(IContextMenu *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblContextMenu)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IContextMenu_iface); } -static inline IShellLinkImpl *impl_from_IObjectWithSite( IObjectWithSite *iface ) +static inline IShellLinkImpl *impl_from_IObjectWithSite(IObjectWithSite *iface) { - return (IShellLinkImpl *)((char*)iface - FIELD_OFFSET(IShellLinkImpl, lpvtblObjectWithSite)); + return CONTAINING_RECORD(iface, IShellLinkImpl, IObjectWithSite_iface); } static HRESULT ShellLink_UpdatePath(LPCWSTR sPathRel, LPCWSTR path, LPCWSTR sWorkDir, LPWSTR* psPath); @@ -243,31 +243,31 @@ static HRESULT ShellLink_QueryInterface( IShellLinkImpl *This, REFIID riid, LPV } else if(IsEqualIID(riid, &IID_IShellLinkW)) { - *ppvObj = &(This->lpvtblw); + *ppvObj = &This->IShellLinkW_iface; } else if(IsEqualIID(riid, &IID_IPersistFile)) { - *ppvObj = &(This->lpvtblPersistFile); + *ppvObj = &This->IPersistFile_iface; } else if(IsEqualIID(riid, &IID_IPersistStream)) { - *ppvObj = &(This->lpvtblPersistStream); + *ppvObj = &This->IPersistStream_iface; } else if(IsEqualIID(riid, &IID_IShellLinkDataList)) { - *ppvObj = &(This->lpvtblShellLinkDataList); + *ppvObj = &This->IShellLinkDataList_iface; } else if(IsEqualIID(riid, &IID_IShellExtInit)) { - *ppvObj = &(This->lpvtblShellExtInit); + *ppvObj = &This->IShellExtInit_iface; } else if(IsEqualIID(riid, &IID_IContextMenu)) { - *ppvObj = &(This->lpvtblContextMenu); + *ppvObj = &This->IContextMenu_iface; } else if(IsEqualIID(riid, &IID_IObjectWithSite)) { - *ppvObj = &(This->lpvtblObjectWithSite); + *ppvObj = &This->IObjectWithSite_iface; } if(*ppvObj) @@ -386,7 +386,7 @@ static HRESULT WINAPI IPersistFile_fnIsDirty(IPersistFile* iface) static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile* iface, LPCOLESTR pszFileName, DWORD dwMode) { IShellLinkImpl *This = impl_from_IPersistFile(iface); - IPersistStream *StreamThis = (IPersistStream *)&This->lpvtblPersistStream; + IPersistStream *StreamThis = &This->IPersistStream_iface; HRESULT r; IStream *stm; @@ -474,7 +474,7 @@ static BOOL StartLinkProcessor( LPCOLESTR szLink ) static HRESULT WINAPI IPersistFile_fnSave(IPersistFile* iface, LPCOLESTR pszFileName, BOOL fRemember) { IShellLinkImpl *This = impl_from_IPersistFile(iface); - IPersistStream *StreamThis = (IPersistStream *)&This->lpvtblPersistStream; + IPersistStream *StreamThis = &This->IPersistStream_iface; HRESULT r; IStream *stm; @@ -1263,13 +1263,13 @@ HRESULT WINAPI IShellLink_Constructor( IUnknown *pUnkOuter, sl->ref = 1; sl->IShellLinkA_iface.lpVtbl = &slvt; - sl->lpvtblw = &slvtw; - sl->lpvtblPersistFile = &pfvt; - sl->lpvtblPersistStream = &psvt; - sl->lpvtblShellLinkDataList = &dlvt; - sl->lpvtblShellExtInit = &eivt; - sl->lpvtblContextMenu = &cmvt; - sl->lpvtblObjectWithSite = &owsvt; + sl->IShellLinkW_iface.lpVtbl = &slvtw; + sl->IPersistFile_iface.lpVtbl = &pfvt; + sl->IPersistStream_iface.lpVtbl = &psvt; + sl->IShellLinkDataList_iface.lpVtbl = &dlvt; + sl->IShellExtInit_iface.lpVtbl = &eivt; + sl->IContextMenu_iface.lpVtbl = &cmvt; + sl->IObjectWithSite_iface.lpVtbl = &owsvt; sl->iShowCmd = SW_SHOWNORMAL; sl->bDirty = FALSE; sl->iIdOpen = -1; @@ -1435,7 +1435,7 @@ static HRESULT WINAPI IShellLinkA_fnGetIDList(IShellLinkA *iface, LPITEMIDLIST * TRACE("(%p)->(ppidl=%p)\n",This, ppidl); - return IShellLinkW_GetIDList((IShellLinkW*)&(This->lpvtblw), ppidl); + return IShellLinkW_GetIDList(&This->IShellLinkW_iface, ppidl); } static HRESULT WINAPI IShellLinkA_fnSetIDList(IShellLinkA *iface, LPCITEMIDLIST pidl) @@ -1655,7 +1655,7 @@ static HRESULT WINAPI IShellLinkA_fnResolve(IShellLinkA *iface, HWND hwnd, DWORD TRACE("(%p)->(hwnd=%p flags=%x)\n",This, hwnd, fFlags); - return IShellLinkW_Resolve( (IShellLinkW*)&(This->lpvtblw), hwnd, fFlags ); + return IShellLinkW_Resolve(&This->IShellLinkW_iface, hwnd, fFlags); } static HRESULT WINAPI IShellLinkA_fnSetPath(IShellLinkA *iface, LPCSTR pszFile) @@ -1672,7 +1672,7 @@ static HRESULT WINAPI IShellLinkA_fnSetPath(IShellLinkA *iface, LPCSTR pszFile) if( !str ) return E_OUTOFMEMORY; - r = IShellLinkW_SetPath((IShellLinkW*)&(This->lpvtblw), str); + r = IShellLinkW_SetPath(&This->IShellLinkW_iface, str); HeapFree( GetProcessHeap(), 0, str ); return r; @@ -2392,7 +2392,7 @@ ShellLink_ExtInit_Initialize( IShellExtInit* iface, LPCITEMIDLIST pidlFolder, path = HeapAlloc( GetProcessHeap(), 0, count*sizeof(WCHAR) ); if( path ) { - IPersistFile *pf = (IPersistFile*) &This->lpvtblPersistFile; + IPersistFile *pf = &This->IPersistFile_iface; count = DragQueryFileW( stgm.u.hGlobal, 0, path, count ); r = IPersistFile_Load( pf, path, 0 ); @@ -2509,7 +2509,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici ) return E_INVALIDARG; } - r = IShellLinkW_Resolve( (IShellLinkW*)&(This->lpvtblw), hwnd, 0 ); + r = IShellLinkW_Resolve(&This->IShellLinkW_iface, hwnd, 0); if ( FAILED( r ) ) return r;
1
0
0
0
Michael Stefaniuc : shell32: COM cleanup for the IShellLinkA iface.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: d9d74ec327539bddf565c7c41f6d3a4e0d791445 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d9d74ec327539bddf565c7c41…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon May 23 01:02:05 2011 +0200 shell32: COM cleanup for the IShellLinkA iface. --- dlls/shell32/shelllink.c | 116 +++++++++++++++++++++++++--------------------- 1 files changed, 63 insertions(+), 53 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d9d74ec327539bddf565c…
1
0
0
0
Michael Stefaniuc : shell32: Finish the COM cleanup in shlview.c.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: 3d172c697846a31f735d8218375824cdab0fba50 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3d172c697846a31f735d82183…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon May 23 01:00:43 2011 +0200 shell32: Finish the COM cleanup in shlview.c. --- dlls/shell32/shlview.c | 74 ++++++++++++++++++++++++------------------------ 1 files changed, 37 insertions(+), 37 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index ab71f4c..93077d5 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -80,13 +80,13 @@ typedef struct typedef struct { IShellView2 IShellView2_iface; - LONG ref; - const IOleCommandTargetVtbl* lpvtblOleCommandTarget; - const IDropTargetVtbl* lpvtblDropTarget; - const IDropSourceVtbl* lpvtblDropSource; - const IViewObjectVtbl* lpvtblViewObject; - const IFolderViewVtbl* lpvtblFolderView; - const IShellFolderViewVtbl *lpvtblShellFolderView; + IOleCommandTarget IOleCommandTarget_iface; + IDropTarget IDropTarget_iface; + IDropSource IDropSource_iface; + IViewObject IViewObject_iface; + IFolderView IFolderView_iface; + IShellFolderView IShellFolderView_iface; + LONG ref; IShellFolder* pSFParent; IShellFolder2* pSF2Parent; IShellBrowser* pShellBrowser; @@ -125,34 +125,34 @@ static inline IShellViewImpl *impl_from_IShellView2(IShellView2 *iface) return CONTAINING_RECORD(iface, IShellViewImpl, IShellView2_iface); } -static inline IShellViewImpl *impl_from_IOleCommandTarget( IOleCommandTarget *iface ) +static inline IShellViewImpl *impl_from_IOleCommandTarget(IOleCommandTarget *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblOleCommandTarget)); + return CONTAINING_RECORD(iface, IShellViewImpl, IOleCommandTarget_iface); } -static inline IShellViewImpl *impl_from_IDropTarget( IDropTarget *iface ) +static inline IShellViewImpl *impl_from_IDropTarget(IDropTarget *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblDropTarget)); + return CONTAINING_RECORD(iface, IShellViewImpl, IDropTarget_iface); } -static inline IShellViewImpl *impl_from_IDropSource( IDropSource *iface ) +static inline IShellViewImpl *impl_from_IDropSource(IDropSource *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblDropSource)); + return CONTAINING_RECORD(iface, IShellViewImpl, IDropSource_iface); } -static inline IShellViewImpl *impl_from_IViewObject( IViewObject *iface ) +static inline IShellViewImpl *impl_from_IViewObject(IViewObject *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblViewObject)); + return CONTAINING_RECORD(iface, IShellViewImpl, IViewObject_iface); } -static inline IShellViewImpl *impl_from_IFolderView( IFolderView *iface ) +static inline IShellViewImpl *impl_from_IFolderView(IFolderView *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblFolderView)); + return CONTAINING_RECORD(iface, IShellViewImpl, IFolderView_iface); } -static inline IShellViewImpl *impl_from_IShellFolderView( IShellFolderView *iface ) +static inline IShellViewImpl *impl_from_IShellFolderView(IShellFolderView *iface) { - return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblShellFolderView)); + return CONTAINING_RECORD(iface, IShellViewImpl, IShellFolderView_iface); } /* ListView Header ID's */ @@ -207,12 +207,12 @@ IShellView * IShellView_Constructor( IShellFolder * pFolder) sv=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IShellViewImpl)); sv->ref=1; sv->IShellView2_iface.lpVtbl = &svvt; - sv->lpvtblOleCommandTarget=&ctvt; - sv->lpvtblDropTarget=&dtvt; - sv->lpvtblDropSource=&dsvt; - sv->lpvtblViewObject=&vovt; - sv->lpvtblFolderView=&fviewvt; - sv->lpvtblShellFolderView=&shellfolderviewvt; + sv->IOleCommandTarget_iface.lpVtbl = &ctvt; + sv->IDropTarget_iface.lpVtbl = &dtvt; + sv->IDropSource_iface.lpVtbl = &dsvt; + sv->IViewObject_iface.lpVtbl = &vovt; + sv->IFolderView_iface.lpVtbl = &fviewvt; + sv->IShellFolderView_iface.lpVtbl = &shellfolderviewvt; sv->pSFParent = pFolder; if(pFolder) IShellFolder_AddRef(pFolder); @@ -656,7 +656,7 @@ static INT CALLBACK fill_list( LPVOID ptr, LPVOID arg ) static HRESULT ShellView_FillList(IShellViewImpl *This) { - IShellFolderView *folderview = (IShellFolderView*)&This->lpvtblShellFolderView; + IShellFolderView *folderview = &This->IShellFolderView_iface; LPENUMIDLIST pEnumIDList; LPITEMIDLIST pidl; DWORD fetched; @@ -1469,7 +1469,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn if (SUCCEEDED(IShellFolder_GetUIObjectOf(This->pSFParent, This->hWnd, This->cidl, (LPCITEMIDLIST*)This->apidl, &IID_IDataObject,0,(LPVOID *)&pda))) { - IDropSource * pds = (IDropSource*)&(This->lpvtblDropSource); /* own DropSource interface */ + IDropSource *pds = &This->IDropSource_iface; /* own DropSource interface */ if (SUCCEEDED(IShellFolder_GetAttributesOf(This->pSFParent, This->cidl, (LPCITEMIDLIST*)This->apidl, &dwAttributes))) { @@ -1746,27 +1746,27 @@ static HRESULT WINAPI IShellView_fnQueryInterface(IShellView2 *iface, REFIID rii } else if(IsEqualIID(riid, &IID_IShellFolderView)) { - *ppvObj = &This->lpvtblShellFolderView; + *ppvObj = &This->IShellFolderView_iface; } else if(IsEqualIID(riid, &IID_IFolderView)) { - *ppvObj = &This->lpvtblFolderView; + *ppvObj = &This->IFolderView_iface; } else if(IsEqualIID(riid, &IID_IOleCommandTarget)) { - *ppvObj = &This->lpvtblOleCommandTarget; + *ppvObj = &This->IOleCommandTarget_iface; } else if(IsEqualIID(riid, &IID_IDropTarget)) { - *ppvObj = &This->lpvtblDropTarget; + *ppvObj = &This->IDropTarget_iface; } else if(IsEqualIID(riid, &IID_IDropSource)) { - *ppvObj = &This->lpvtblDropSource; + *ppvObj = &This->IDropSource_iface; } else if(IsEqualIID(riid, &IID_IViewObject)) { - *ppvObj = &This->lpvtblViewObject; + *ppvObj = &This->IViewObject_iface; } if(*ppvObj) @@ -2007,7 +2007,7 @@ static HRESULT WINAPI IShellView_fnSaveViewState(IShellView2 *iface) static HRESULT WINAPI IShellView_fnSelectItem(IShellView2 *iface, LPCITEMIDLIST pidl, UINT flags) { IShellViewImpl *This = impl_from_IShellView2(iface); - IFolderView *view = (IFolderView*)&This->lpvtblFolderView; + IFolderView *view = &This->IFolderView_iface; int i; TRACE("(%p)->(pidl=%p, 0x%08x)\n",This, pidl, flags); @@ -3021,7 +3021,7 @@ static HRESULT WINAPI IShellFolderView_fnAutoArrange(IShellFolderView *iface) static HRESULT WINAPI IShellFolderView_fnGetAutoArrange(IShellFolderView *iface) { IShellViewImpl *This = impl_from_IShellFolderView(iface); - IFolderView *view = (IFolderView*)&This->lpvtblFolderView; + IFolderView *view = &This->IFolderView_iface; TRACE("(%p)\n", This); return IFolderView_GetAutoArrange(view); @@ -3043,7 +3043,7 @@ static HRESULT WINAPI IShellFolderView_fnGetObject( UINT item) { IShellViewImpl *This = impl_from_IShellFolderView(iface); - IFolderView *view = (IFolderView*)&This->lpvtblFolderView; + IFolderView *view = &This->IFolderView_iface; TRACE("(%p)->(%p %d)\n", This, pidl, item); return IFolderView_Item(view, item, pidl); @@ -3077,7 +3077,7 @@ static HRESULT WINAPI IShellFolderView_fnGetObjectCount( UINT *count) { IShellViewImpl *This = impl_from_IShellFolderView(iface); - IFolderView *view = (IFolderView*)&This->lpvtblFolderView; + IFolderView *view = &This->IFolderView_iface; TRACE("(%p)->(%p)\n", This, count); return IFolderView_ItemCount(view, SVGIO_ALLVIEW, (INT*)count);
1
0
0
0
Michael Stefaniuc : shell32: COM cleanup for the IShellView2 iface.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: 7d4dfae2b8014371a06661452eb40a6e3689a343 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d4dfae2b8014371a06661452…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon May 23 00:59:00 2011 +0200 shell32: COM cleanup for the IShellView2 iface. --- dlls/shell32/shlview.c | 120 ++++++++++++++++++++++++----------------------- 1 files changed, 61 insertions(+), 59 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=7d4dfae2b8014371a0666…
1
0
0
0
Nikolay Sivov : comctl32/treeview: Correctly draw cut items.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: 9bdd21cad579de484b4aff56e8cf244495ea69aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9bdd21cad579de484b4aff56e…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun May 22 11:29:51 2011 +0400 comctl32/treeview: Correctly draw cut items. --- dlls/comctl32/treeview.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index de4edf5..2388d3c 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -33,7 +33,7 @@ * * missing styles: TVS_FULLROWSELECT, TVS_INFOTIP, TVS_RTLREADING, * - * missing item styles: TVIS_CUT, TVIS_EXPANDPARTIAL, TVIS_EX_FLAT, + * missing item styles: TVIS_EXPANDPARTIAL, TVIS_EX_FLAT, * TVIS_EX_DISABLED * * Make the insertion mark look right. @@ -2601,12 +2601,14 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item) if (infoPtr->himlNormal) { - int ovlIdx = item->state & TVIS_OVERLAYMASK; + UINT style = item->state & TVIS_CUT ? ILD_SELECTED : ILD_NORMAL; - ImageList_Draw(infoPtr->himlNormal, imageIndex, hdc, - item->imageOffset, - centery - infoPtr->normalImageHeight / 2, - ILD_NORMAL | ovlIdx); + style |= item->state & TVIS_OVERLAYMASK; + + ImageList_DrawEx(infoPtr->himlNormal, imageIndex, hdc, + item->imageOffset, centery - infoPtr->normalImageHeight / 2, + 0, 0, infoPtr->clrBk, item->state & TVIS_CUT ? GETBKCOLOR(infoPtr->clrBk) : CLR_DEFAULT, + style); } }
1
0
0
0
Nikolay Sivov : comctl32/treeview: Item text should be vertically aligned.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: a1f7c09b1c0b3dccf05975970d978b5f309049c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a1f7c09b1c0b3dccf05975970…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri May 20 11:13:55 2011 +0400 comctl32/treeview: Item text should be vertically aligned. --- dlls/comctl32/treeview.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 490f9b2..de4edf5 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2621,6 +2621,8 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item) if (item->pszText) { RECT rcText; + UINT align; + SIZE sz; rcText.top = item->rect.top; rcText.bottom = item->rect.bottom; @@ -2631,19 +2633,22 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item) debugstr_w(item->pszText), wine_dbgstr_rect(&rcText)); /* Draw it */ - ExtTextOutW(hdc, rcText.left + 2, rcText.top + 1, + GetTextExtentPoint32W(hdc, item->pszText, strlenW(item->pszText), &sz); + + align = SetTextAlign(hdc, TA_LEFT | TA_TOP); + ExtTextOutW(hdc, rcText.left + 2, (rcText.top + rcText.bottom - sz.cy) / 2, ETO_CLIPPED | ETO_OPAQUE, &rcText, item->pszText, lstrlenW(item->pszText), NULL); - - /* Draw the box around the selected item */ + SetTextAlign(hdc, align); + + /* Draw focus box around the selected item */ if ((item == infoPtr->selectedItem) && inFocus) { DrawFocusRect(hdc,&rcText); } - } }
1
0
0
0
Nikolay Sivov : comctl32/treeview: Always draw a '+' for TVIS_EXPANDPARTIAL state.
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: 4b741e8d2fc30a908e521615ea3bfb1647ab53f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4b741e8d2fc30a908e521615e…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri May 20 10:04:51 2011 +0400 comctl32/treeview: Always draw a '+' for TVIS_EXPANDPARTIAL state. --- dlls/comctl32/treeview.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 42978d2..490f9b2 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2453,7 +2453,8 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE MoveToEx(hdc, centerx - plussize + 1, centery, NULL); LineTo(hdc, centerx + plussize, centery); - if (!(item->state & TVIS_EXPANDED)) + if (!(item->state & TVIS_EXPANDED) || + (item->state & TVIS_EXPANDPARTIAL)) { MoveToEx(hdc, centerx, centery - plussize + 1, NULL); LineTo(hdc, centerx, centery + plussize); @@ -2463,8 +2464,9 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE { Rectangle(hdc, centerx - plussize + 1, centery - 1, centerx + plussize, centery + 2); - - if (!(item->state & TVIS_EXPANDED)) + + if (!(item->state & TVIS_EXPANDED) || + (item->state & TVIS_EXPANDPARTIAL)) { Rectangle(hdc, centerx - 1, centery - plussize + 1, centerx + 2, centery + plussize);
1
0
0
0
Mike Kaplinskiy : iphlpapi: Set the overlapped status to pending as well as returning ERROR_IO_PENDING .
by Alexandre Julliard
23 May '11
23 May '11
Module: wine Branch: master Commit: e2e98ae36fb6d48583e3977b02d27c4bd1a46882 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e2e98ae36fb6d48583e3977b0…
Author: Mike Kaplinskiy <mike.kaplinskiy(a)gmail.com> Date: Sun May 22 03:22:45 2011 -0400 iphlpapi: Set the overlapped status to pending as well as returning ERROR_IO_PENDING. --- dlls/iphlpapi/iphlpapi_main.c | 2 ++ dlls/iphlpapi/tests/iphlpapi.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index 87aa4ac..70b4876 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -49,6 +49,7 @@ #include "winreg.h" #define USE_WS_PREFIX #include "winsock2.h" +#include "winternl.h" #include "ws2ipdef.h" #include "iphlpapi.h" #include "ifenum.h" @@ -2033,6 +2034,7 @@ DWORD WINAPI NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED overlapped) { FIXME("(Handle %p, overlapped %p): stub\n", Handle, overlapped); if (Handle) *Handle = INVALID_HANDLE_VALUE; + if (overlapped) ((IO_STATUS_BLOCK *) overlapped)->u.Status = STATUS_PENDING; return ERROR_IO_PENDING; } diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c index 6f41adf..cd1ef23 100644 --- a/dlls/iphlpapi/tests/iphlpapi.c +++ b/dlls/iphlpapi/tests/iphlpapi.c @@ -849,9 +849,9 @@ static void testNotifyAddrChange(void) ok(ret == ERROR_IO_PENDING, "NotifyAddrChange returned %d, expected ERROR_IO_PENDING\n", ret); todo_wine ok(handle != INVALID_HANDLE_VALUE, "NotifyAddrChange returned invalid file handle\n"); success = GetOverlappedResult(handle, &overlapped, &bytes, FALSE); - todo_wine ok(success == FALSE, "GetOverlappedResult returned TRUE, expected FALSE\n"); + ok(success == FALSE, "GetOverlappedResult returned TRUE, expected FALSE\n"); ret = GetLastError(); - todo_wine ok(ret == ERROR_IO_INCOMPLETE, "GetLastError returned %d, expected ERROR_IO_INCOMPLETE\n", ret); + ok(ret == ERROR_IO_INCOMPLETE, "GetLastError returned %d, expected ERROR_IO_INCOMPLETE\n", ret); success = gCancelIPChangeNotify(&overlapped); todo_wine ok(success == TRUE, "CancelIPChangeNotify returned FALSE, expected TRUE\n");
1
0
0
0
← Newer
1
...
27
28
29
30
31
32
33
...
95
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
88
89
90
91
92
93
94
95
Results per page:
10
25
50
100
200