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
January 2007
----- 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
4 participants
893 discussions
Start a n
N
ew thread
H. Verbeet : wined3d: Use SetupFullscreenWindow() to make the window fullscreen.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 4352934b845df88dc0dc94a24ca01f70ba700a91 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4352934b845df88dc0dc94a24…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jan 18 23:41:43 2007 +0100 wined3d: Use SetupFullscreenWindow() to make the window fullscreen. --- dlls/wined3d/device.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 1572b10..2f95fb1 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1512,7 +1512,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl HDC hdc; int bpp = 0; RECT clip_rc; - DWORD style; /* Get info on the current display setup */ hdc = GetDC(0); @@ -1528,19 +1527,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl MultiByteToWideChar(CP_ACP, 0, "Gamers CG", -1, devmode.dmDeviceName, CCHDEVICENAME); ChangeDisplaySettingsExW(devmode.dmDeviceName, &devmode, object->win_handle, CDS_FULLSCREEN, NULL); - /* Make popup window, remove caption and borders */ - style = GetWindowLongW(object->win_handle, GWL_STYLE); - style &= ~WS_CAPTION; - SetWindowLongW(object->win_handle, GWL_STYLE, style | WS_POPUP); - SetWindowPos(object->win_handle, HWND_TOP, 0, 0, - *(pPresentationParameters->BackBufferWidth), - *(pPresentationParameters->BackBufferHeight), SWP_FRAMECHANGED); - /* For GetDisplayMode */ This->ddraw_width = devmode.dmPelsWidth; This->ddraw_height = devmode.dmPelsHeight; This->ddraw_format = *(pPresentationParameters->BackBufferFormat); + IWineD3DDeviceImpl_SetupFullscreenWindow(iface, object->win_handle); + /* And finally clip mouse to our screen */ SetRect(&clip_rc, 0, 0, devmode.dmPelsWidth, devmode.dmPelsHeight); ClipCursor(&clip_rc);
1
0
0
0
H. Verbeet : wined3d: Move SetupFullscreenWindow() and RestoreWindow() from IDirectDrawImpl to IWineD3DDeviceImpl.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 6112522122eeb701ec21d0d55d7bcdc82dae2735 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6112522122eeb701ec21d0d55…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jan 18 23:41:36 2007 +0100 wined3d: Move SetupFullscreenWindow() and RestoreWindow() from IDirectDrawImpl to IWineD3DDeviceImpl. --- dlls/ddraw/ddraw.c | 99 +------------------------------------ dlls/ddraw/ddraw_private.h | 3 - dlls/wined3d/device.c | 87 +++++++++++++++++++++++++++++++++ dlls/wined3d/wined3d_private.h | 4 ++ include/wine/wined3d_interface.h | 4 ++ 5 files changed, 98 insertions(+), 99 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6112522122eeb701ec21d…
1
0
0
0
H. Verbeet : wined3d: Use %s in trace.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: a31f2fd9fc32a4749edf8df2e031f8869c5408bf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a31f2fd9fc32a4749edf8df2e…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jan 18 23:41:27 2007 +0100 wined3d: Use %s in trace. --- dlls/wined3d/baseshader.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c index bd48878..6949be1 100644 --- a/dlls/wined3d/baseshader.c +++ b/dlls/wined3d/baseshader.c @@ -61,7 +61,7 @@ int shader_addline( TRACE("GL HW (%u, %u) : %s", buffer->lineNo + 1, buffer->bsize, base); buffer->newline = FALSE; } else { - TRACE(base); + TRACE("%s", base); } buffer->bsize += rc;
1
0
0
0
Andrew Talbot : odbc32: Declare a function static.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 9c036817539b7437688d7dada6064f1a8f4eafe6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c036817539b7437688d7dada…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Thu Jan 18 21:50:20 2007 +0000 odbc32: Declare a function static. --- dlls/odbc32/proxyodbc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index a3aa287..3351cfd 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -156,7 +156,7 @@ static PROXYHANDLE gProxyHandle; } \ } -SQLRETURN SQLDummyFunc(void) +static SQLRETURN SQLDummyFunc(void) { TRACE("SQLDummyFunc:\n"); return SQL_SUCCESS;
1
0
0
0
Andrew Talbot : ole32: Declare some functions static.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 02a5f7389e3bc2ab6a6455984fe11b9ff67a5692 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=02a5f7389e3bc2ab6a6455984…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Thu Jan 18 21:50:56 2007 +0000 ole32: Declare some functions static. --- dlls/ole32/classmoniker.c | 2 +- dlls/ole32/errorinfo.c | 2 +- dlls/ole32/hglobalstream.c | 2 +- dlls/ole32/itemmoniker.c | 8 ++++---- dlls/ole32/memlockbytes.c | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dlls/ole32/classmoniker.c b/dlls/ole32/classmoniker.c index 8bfafe8..66677d6 100644 --- a/dlls/ole32/classmoniker.c +++ b/dlls/ole32/classmoniker.c @@ -694,7 +694,7 @@ static const IROTDataVtbl ROTDataVtbl = /****************************************************************************** * ClassMoniker_Construct (local function) *******************************************************************************/ -HRESULT WINAPI ClassMoniker_Construct(ClassMoniker* This, REFCLSID rclsid) +static HRESULT WINAPI ClassMoniker_Construct(ClassMoniker* This, REFCLSID rclsid) { TRACE("(%p,%s)\n",This,debugstr_guid(rclsid)); diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c index c1789ef..01dc305 100644 --- a/dlls/ole32/errorinfo.c +++ b/dlls/ole32/errorinfo.c @@ -167,7 +167,7 @@ static inline ErrorInfoImpl *impl_from_I #define _ICreateErrorInfo_(This) (ICreateErrorInfo*)&(This->lpvtcei) #define _ISupportErrorInfo_(This) (ISupportErrorInfo*)&(This->lpvtsei) -IErrorInfo * IErrorInfoImpl_Constructor(void) +static IErrorInfo * IErrorInfoImpl_Constructor(void) { ErrorInfoImpl * ei = HeapAlloc(GetProcessHeap(), 0, sizeof(ErrorInfoImpl)); if (ei) diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c index 40a0dbf..d98c0c5 100644 --- a/dlls/ole32/hglobalstream.c +++ b/dlls/ole32/hglobalstream.c @@ -651,7 +651,7 @@ static const IStreamVtbl HGLOBALStreamIm * fDeleteOnRelease - Flag set to TRUE if the HGLOBAL will be released * when the IStream object is destroyed. */ -HGLOBALStreamImpl* HGLOBALStreamImpl_Construct( +static HGLOBALStreamImpl* HGLOBALStreamImpl_Construct( HGLOBAL hGlobal, BOOL fDeleteOnRelease) { diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c index 110e311..2a8ed22 100644 --- a/dlls/ole32/itemmoniker.c +++ b/dlls/ole32/itemmoniker.c @@ -97,8 +97,8 @@ static HRESULT WINAPI ItemMonikerImpl_Pa static HRESULT WINAPI ItemMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys); /* Local function used by ItemMoniker implementation */ -HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* iface, LPCOLESTR lpszDelim,LPCOLESTR lpszPathName); -HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* iface); +static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* iface, LPCOLESTR lpszDelim,LPCOLESTR lpszPathName); +static HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* iface); /********************************************************************************/ /* IROTData prototype functions */ @@ -388,7 +388,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMa /****************************************************************************** * ItemMoniker_Construct (local function) *******************************************************************************/ -HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDelim,LPCOLESTR lpszItem) +static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDelim,LPCOLESTR lpszItem) { int sizeStr1=lstrlenW(lpszItem), sizeStr2; @@ -426,7 +426,7 @@ HRESULT WINAPI ItemMonikerImpl_Construct /****************************************************************************** * ItemMoniker_Destroy (local function) *******************************************************************************/ -HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This) +static HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This) { TRACE("(%p)\n",This); diff --git a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c index ef02011..18761fb 100644 --- a/dlls/ole32/memlockbytes.c +++ b/dlls/ole32/memlockbytes.c @@ -81,11 +81,11 @@ typedef struct HGLOBALLockBytesImpl HGLO /* * Method definition for the HGLOBALLockBytesImpl class. */ -HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct( +static HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct( HGLOBAL hGlobal, BOOL fDeleteOnRelease); -void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This); +static void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This); static HRESULT WINAPI HGLOBALLockBytesImpl_SetSize( ILockBytes* iface, ULARGE_INTEGER libNewSize ); @@ -196,8 +196,8 @@ HRESULT WINAPI GetHGlobalFromILockBytes( * fDeleteOnRelease [ I] Flag set to TRUE if the HGLOBAL will be released * when the IStream object is destroyed. */ -HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(HGLOBAL hGlobal, - BOOL fDeleteOnRelease) +static HGLOBALLockBytesImpl* HGLOBALLockBytesImpl_Construct(HGLOBAL hGlobal, + BOOL fDeleteOnRelease) { HGLOBALLockBytesImpl* newLockBytes; newLockBytes = HeapAlloc(GetProcessHeap(), 0, sizeof(HGLOBALLockBytesImpl)); @@ -244,7 +244,7 @@ HGLOBALLockBytesImpl* HGLOBALLockBytesIm * HGLOBALLockBytesImpl class. The pointer passed-in to this function will be * freed and will not be valid anymore. */ -void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This) +static void HGLOBALLockBytesImpl_Destroy(HGLOBALLockBytesImpl* This) { /* * Release the HGlobal if the constructor asked for that.
1
0
0
0
Vitaliy Margolen : server: Add generic access mapping for winstation and desktop objects.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: e612bd410c48944e95a615f370def07ba6d2310c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e612bd410c48944e95a615f37…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Thu Jan 18 13:10:31 2007 -0700 server: Add generic access mapping for winstation and desktop objects. --- server/winstation.c | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/server/winstation.c b/server/winstation.c index 44c66a5..a7df50e 100644 --- a/server/winstation.c +++ b/server/winstation.c @@ -46,9 +46,11 @@ static struct namespace *winstation_name static void winstation_dump( struct object *obj, int verbose ); static int winstation_close_handle( struct object *obj, struct process *process, obj_handle_t handle ); static void winstation_destroy( struct object *obj ); +static unsigned int winstation_map_access( struct object *obj, unsigned int access ); static void desktop_dump( struct object *obj, int verbose ); static int desktop_close_handle( struct object *obj, struct process *process, obj_handle_t handle ); static void desktop_destroy( struct object *obj ); +static unsigned int desktop_map_access( struct object *obj, unsigned int access ); static const struct object_ops winstation_ops = { @@ -60,7 +62,7 @@ static const struct object_ops winstatio NULL, /* satisfied */ no_signal, /* signal */ no_get_fd, /* get_fd */ - no_map_access, /* map_access */ + winstation_map_access, /* map_access */ no_lookup_name, /* lookup_name */ winstation_close_handle, /* close_handle */ winstation_destroy /* destroy */ @@ -77,7 +79,7 @@ static const struct object_ops desktop_o NULL, /* satisfied */ no_signal, /* signal */ no_get_fd, /* get_fd */ - no_map_access, /* map_access */ + desktop_map_access, /* map_access */ no_lookup_name, /* lookup_name */ desktop_close_handle, /* close_handle */ desktop_destroy /* destroy */ @@ -139,6 +141,17 @@ static void winstation_destroy( struct o if (winstation->atom_table) release_object( winstation->atom_table ); } +static unsigned int winstation_map_access( struct object *obj, unsigned int access ) +{ + if (access & GENERIC_READ) access |= STANDARD_RIGHTS_READ | WINSTA_ENUMDESKTOPS | WINSTA_READATTRIBUTES | + WINSTA_ENUMERATE | WINSTA_READSCREEN; + if (access & GENERIC_WRITE) access |= STANDARD_RIGHTS_WRITE | WINSTA_ACCESSCLIPBOARD | WINSTA_CREATEDESKTOP | + WINSTA_WRITEATTRIBUTES; + if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | WINSTA_ACCESSGLOBALATOMS | WINSTA_EXITWINDOWS; + if (access & GENERIC_ALL) access |= STANDARD_RIGHTS_REQUIRED | WINSTA_ALL_ACCESS; + return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL); +} + /* retrieve the process window station, checking the handle access rights */ struct winstation *get_process_winstation( struct process *process, unsigned int access ) { @@ -239,6 +252,17 @@ static void desktop_destroy( struct obje release_object( desktop->winstation ); } +static unsigned int desktop_map_access( struct object *obj, unsigned int access ) +{ + if (access & GENERIC_READ) access |= STANDARD_RIGHTS_READ | DESKTOP_READOBJECTS | DESKTOP_ENUMERATE; + if (access & GENERIC_WRITE) access |= STANDARD_RIGHTS_WRITE | DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | + DESKTOP_HOOKCONTROL | DESKTOP_JOURNALRECORD | DESKTOP_JOURNALPLAYBACK | + DESKTOP_WRITEOBJECTS; + if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | DESKTOP_SWITCHDESKTOP; + if (access & GENERIC_ALL) access |= STANDARD_RIGHTS_REQUIRED | DESKTOP_ALL_ACCESS; + return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL); +} + /* retrieve the thread desktop, checking the handle access rights */ struct desktop *get_thread_desktop( struct thread *thread, unsigned int access ) {
1
0
0
0
Francois Gouget : shell32: Add proper support for SHGetFileInfo( SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES).
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: aa3165fca69384d863a2c6f80c38f40a8430c59a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aa3165fca69384d863a2c6f80…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Jan 18 16:23:30 2007 +0100 shell32: Add proper support for SHGetFileInfo(SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES). --- dlls/shell32/shell32_main.c | 67 ++++++++++++++++++++++++++++------------ dlls/shell32/tests/shlfileop.c | 6 ++-- 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index 476a4ae..feeeac4 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -356,14 +356,6 @@ DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR (flags & (SHGFI_ATTRIBUTES|SHGFI_EXETYPE|SHGFI_PIDL))) return FALSE; - if ( (flags & SHGFI_USEFILEATTRIBUTES) && - (flags & (SHGFI_ICONLOCATION | SHGFI_ICON | SHGFI_SYSICONINDEX)) ) - { - FIXME("This combination of flags is not supported yet\n"); - /* And it would cause a crash, so return false instead */ - return FALSE; - } - /* windows initializes these values regardless of the flags */ if (psfi != NULL) { @@ -519,21 +511,56 @@ DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR { UINT uDummy,uFlags; - hr = IShellFolder_GetUIObjectOf(psfParent, 0, 1, - (LPCITEMIDLIST*)&pidlLast, &IID_IExtractIconW, - &uDummy, (LPVOID*)&pei); - if (SUCCEEDED(hr)) + if (flags & SHGFI_USEFILEATTRIBUTES) { - hr = IExtractIconW_GetIconLocation(pei, uGilFlags, - szLocation, MAX_PATH, &iIndex, &uFlags); - psfi->iIcon = iIndex; - - if (!(uFlags & GIL_NOTFILENAME)) - lstrcpyW (psfi->szDisplayName, szLocation); + if (dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + { + lstrcpyW(psfi->szDisplayName, swShell32Name); + psfi->iIcon = -IDI_SHELL_FOLDER; + } else - ret = FALSE; + { + WCHAR* szExt; + static const WCHAR p1W[] = {'%','1',0}; + WCHAR sTemp [MAX_PATH]; + + szExt = (LPWSTR) PathFindExtensionW(szFullPath); + TRACE("szExt=%s\n", debugstr_w(szExt)); + if ( szExt && + HCR_MapTypeToValueW(szExt, sTemp, MAX_PATH, TRUE) && + HCR_GetDefaultIconW(sTemp, sTemp, MAX_PATH, &psfi->iIcon)) + { + if (lstrcmpW(p1W, sTemp)) + strcpyW(psfi->szDisplayName, sTemp); + else + { + /* the icon is in the file */ + strcpyW(psfi->szDisplayName, szFullPath); + } + } + else + ret = FALSE; + } + } + else + { + hr = IShellFolder_GetUIObjectOf(psfParent, 0, 1, + (LPCITEMIDLIST*)&pidlLast, &IID_IExtractIconW, + &uDummy, (LPVOID*)&pei); + if (SUCCEEDED(hr)) + { + hr = IExtractIconW_GetIconLocation(pei, uGilFlags, + szLocation, MAX_PATH, &iIndex, &uFlags); - IExtractIconW_Release(pei); + if (uFlags & GIL_NOTFILENAME) + ret = FALSE; + else + { + lstrcpyW (psfi->szDisplayName, szLocation); + psfi->iIcon = iIndex; + } + IExtractIconW_Release(pei); + } } } diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index f6e599e..b363c5e 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -140,7 +140,7 @@ static void test_get_file_info(void) rc=SHGetFileInfoA("c:\\nonexistent", FILE_ATTRIBUTE_DIRECTORY, &shfi, sizeof(shfi), SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); - todo_wine ok(rc, "SHGetFileInfoA(c:\\nonexistent) failed\n"); + ok(rc, "SHGetFileInfoA(c:\\nonexistent) failed\n"); if (rc) { ok(strcpy(shfi.szDisplayName, "dummy") != 0, "SHGetFileInfoA(c:\\nonexistent) displayname is not set\n"); @@ -157,7 +157,7 @@ static void test_get_file_info(void) rc=SHGetFileInfoA(notepad, GetFileAttributes(notepad), &shfi, sizeof(shfi), SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); - todo_wine ok(rc, "SHGetFileInfoA(%s, SHGFI_USEFILEATTRIBUTES) failed\n", notepad); + ok(rc, "SHGetFileInfoA(%s, SHGFI_USEFILEATTRIBUTES) failed\n", notepad); strcpy(shfi2.szDisplayName, "dummy"); shfi2.iIcon=0xdeadbeef; rc2=SHGetFileInfoA(notepad, 0, @@ -177,7 +177,7 @@ static void test_get_file_info(void) rc=SHGetFileInfoA("test4.txt", GetFileAttributes("test4.txt"), &shfi, sizeof(shfi), SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); - todo_wine ok(rc, "SHGetFileInfoA(test4.txt/, SHGFI_USEFILEATTRIBUTES) failed\n"); + ok(rc, "SHGetFileInfoA(test4.txt/, SHGFI_USEFILEATTRIBUTES) failed\n"); strcpy(shfi2.szDisplayName, "dummy"); shfi2.iIcon=0xdeadbeef; rc2=SHGetFileInfoA("test4.txt", 0,
1
0
0
0
Francois Gouget : shell32/tests: Add some more SHGetFileInfo() tests.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 5c5933f699ed16daa44d4451bedc2eddb51f78b9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5c5933f699ed16daa44d4451b…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Jan 18 16:23:05 2007 +0100 shell32/tests: Add some more SHGetFileInfo() tests. --- dlls/shell32/tests/shlfileop.c | 69 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 66 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index c6d8004..f6e599e 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -114,20 +114,81 @@ static void clean_after_shfo_tests(void) static void test_get_file_info(void) { - DWORD rc; - SHFILEINFO shfi; + DWORD rc, rc2; + SHFILEINFO shfi, shfi2; + char notepad[MAX_PATH]; + + /* Test some flag combinations that MSDN claims are not allowed, + * but which work anyway + */ + shfi.dwAttributes=0xdeadbeef; + rc=SHGetFileInfoA("c:\\nonexistent", FILE_ATTRIBUTE_DIRECTORY, + &shfi, sizeof(shfi), + SHGFI_ATTRIBUTES | SHGFI_USEFILEATTRIBUTES); + todo_wine ok(rc, "SHGetFileInfoA(c:\\nonexistent | SHGFI_ATTRIBUTES) failed\n"); + if (rc) + ok(shfi.dwAttributes != 0xdeadbeef, "dwFileAttributes is not set\n"); + rc=SHGetFileInfoA("c:\\nonexistent", FILE_ATTRIBUTE_DIRECTORY, + &shfi, sizeof(shfi), + SHGFI_EXETYPE | SHGFI_USEFILEATTRIBUTES); + todo_wine ok(rc == 1, "SHGetFileInfoA(c:\\nonexistent | SHGFI_EXETYPE) returned %d\n", rc); + + /* Test SHGFI_USEFILEATTRIBUTES support */ strcpy(shfi.szDisplayName, "dummy"); shfi.iIcon=0xdeadbeef; rc=SHGetFileInfoA("c:\\nonexistent", FILE_ATTRIBUTE_DIRECTORY, &shfi, sizeof(shfi), SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); - todo_wine ok(rc, "SHGetFileInfoA(c:\\nonexistent) returned %d\n", rc); + todo_wine ok(rc, "SHGetFileInfoA(c:\\nonexistent) failed\n"); if (rc) { ok(strcpy(shfi.szDisplayName, "dummy") != 0, "SHGetFileInfoA(c:\\nonexistent) displayname is not set\n"); ok(shfi.iIcon != 0xdeadbeef, "SHGetFileInfoA(c:\\nonexistent) iIcon is not set\n"); } + + /* Wine does not have a default icon for text files, and Windows 98 fails + * if we give it an empty executable. So use notepad.exe as the test + */ + if (SearchPath(NULL, "notepad.exe", NULL, sizeof(notepad), notepad, NULL)) + { + strcpy(shfi.szDisplayName, "dummy"); + shfi.iIcon=0xdeadbeef; + rc=SHGetFileInfoA(notepad, GetFileAttributes(notepad), + &shfi, sizeof(shfi), + SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); + todo_wine ok(rc, "SHGetFileInfoA(%s, SHGFI_USEFILEATTRIBUTES) failed\n", notepad); + strcpy(shfi2.szDisplayName, "dummy"); + shfi2.iIcon=0xdeadbeef; + rc2=SHGetFileInfoA(notepad, 0, + &shfi2, sizeof(shfi2), + SHGFI_ICONLOCATION); + ok(rc2, "SHGetFileInfoA(%s) failed\n", notepad); + if (rc && rc2) + { + ok(lstrcmpi(shfi2.szDisplayName, shfi.szDisplayName) == 0, "wrong display name %s != %s\n", shfi.szDisplayName, shfi2.szDisplayName); + ok(shfi2.iIcon == shfi.iIcon, "wrong icon index %d != %d\n", shfi.iIcon, shfi2.iIcon); + } + } + + /* with a directory now */ + strcpy(shfi.szDisplayName, "dummy"); + shfi.iIcon=0xdeadbeef; + rc=SHGetFileInfoA("test4.txt", GetFileAttributes("test4.txt"), + &shfi, sizeof(shfi), + SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES); + todo_wine ok(rc, "SHGetFileInfoA(test4.txt/, SHGFI_USEFILEATTRIBUTES) failed\n"); + strcpy(shfi2.szDisplayName, "dummy"); + shfi2.iIcon=0xdeadbeef; + rc2=SHGetFileInfoA("test4.txt", 0, + &shfi2, sizeof(shfi2), + SHGFI_ICONLOCATION); + ok(rc2, "SHGetFileInfoA(test4.txt/) failed\n"); + if (rc && rc2) + { + ok(lstrcmpi(shfi2.szDisplayName, shfi.szDisplayName) == 0, "wrong display name %s != %s\n", shfi.szDisplayName, shfi2.szDisplayName); + ok(shfi2.iIcon == shfi.iIcon, "wrong icon index %d != %d\n", shfi.iIcon, shfi2.iIcon); + } } @@ -875,7 +936,9 @@ START_TEST(shlfileop) clean_after_shfo_tests(); + init_shfo_tests(); test_get_file_info(); + clean_after_shfo_tests(); init_shfo_tests(); test_delete();
1
0
0
0
Thomas Weidenmueller : shell32: Fix prototypes.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: e06345db52c772084f46ed540fe2fd5b7708edf6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e06345db52c772084f46ed540…
Author: Thomas Weidenmueller <wine-patches(a)reactsoft.com> Date: Thu Jan 18 16:10:16 2007 +0100 shell32: Fix prototypes. Fix the SHAddFromPropSheetExtArray, SHCreatePropSheetExtArray, SHReplaceFromPropSheetExtArray and SHDestroyPropSheetExtArray function prototypes because they're now documented. Also add them to shlobj.h. --- dlls/shell32/shellord.c | 19 +++++++++---------- include/shlobj.h | 9 +++++++++ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c index ef6b7b8..7c22e6b 100644 --- a/dlls/shell32/shellord.c +++ b/dlls/shell32/shellord.c @@ -1516,37 +1516,36 @@ DWORD WINAPI SHELL32_714(LPVOID x) /************************************************************************* * SHAddFromPropSheetExtArray [SHELL32.167] */ -DWORD WINAPI SHAddFromPropSheetExtArray(DWORD a, DWORD b, DWORD c) +UINT WINAPI SHAddFromPropSheetExtArray(HPSXA hpsxa, LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam) { - FIXME("(%08x,%08x,%08x)stub\n", a, b, c); + FIXME("(%p,%p,%08lx)stub\n", hpsxa, lpfnAddPage, lParam); return 0; } /************************************************************************* * SHCreatePropSheetExtArray [SHELL32.168] */ -DWORD WINAPI SHCreatePropSheetExtArray(DWORD a, LPCSTR b, DWORD c) +HPSXA WINAPI SHCreatePropSheetExtArray(HKEY hKey, LPCWSTR pszSubKey, UINT max_iface) { - FIXME("(%08x,%s,%08x)stub\n", a, debugstr_a(b), c); - return 0; + FIXME("(%p,%s,%u)stub\n", hKey, debugstr_w(pszSubKey), max_iface); + return NULL; } /************************************************************************* * SHReplaceFromPropSheetExtArray [SHELL32.170] */ -DWORD WINAPI SHReplaceFromPropSheetExtArray(DWORD a, DWORD b, DWORD c, DWORD d) +UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA hpsxa, UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith, LPARAM lParam) { - FIXME("(%08x,%08x,%08x,%08x)stub\n", a, b, c, d); + FIXME("(%p,%u,%p,%08lx)stub\n", hpsxa, uPageID, lpfnReplaceWith, lParam); return 0; } /************************************************************************* * SHDestroyPropSheetExtArray [SHELL32.169] */ -DWORD WINAPI SHDestroyPropSheetExtArray(DWORD a) +void WINAPI SHDestroyPropSheetExtArray(HPSXA hpsxa) { - FIXME("(%08x)stub\n", a); - return 0; + FIXME("(%p)stub\n", hpsxa); } /************************************************************************* diff --git a/include/shlobj.h b/include/shlobj.h index ee8e58c..b5fee16 100644 --- a/include/shlobj.h +++ b/include/shlobj.h @@ -34,12 +34,20 @@ extern "C" { #include <shtypes.h> #include <shobjidl.h> +#ifndef HPSXA_DEFINED +#define HPSXA_DEFINED +DECLARE_HANDLE(HPSXA); +#endif + +UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM); LPVOID WINAPI SHAlloc(ULONG); HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*); +HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT); DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*); DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*); #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString) HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**); +void WINAPI SHDestroyPropSheetExtArray(HPSXA); BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST); DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT); void WINAPI SHFree(LPVOID); @@ -50,6 +58,7 @@ BOOL WINAPI SHGetPathFromIDListW INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST); HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*); HRESULT WINAPI SHLoadOLE(LPARAM); +UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM); LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR); int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*); HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
1
0
0
0
Dmitry Timoshkov : user32: Some apps pass a color bitmap as a mask to CreateIconIndirect, convert it to b/w.
by Alexandre Julliard
19 Jan '07
19 Jan '07
Module: wine Branch: master Commit: 64f1d97a5435df2f8275c304145635bce290db14 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64f1d97a5435df2f8275c3041…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Thu Jan 18 19:21:05 2007 +0800 user32: Some apps pass a color bitmap as a mask to CreateIconIndirect, convert it to b/w. --- dlls/user32/cursoricon.c | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index c287009..26adfde 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -1823,16 +1823,31 @@ HICON WINAPI CreateIconIndirect(PICONINF HICON16 hObj; int sizeXor,sizeAnd; - if (iconinfo->hbmColor) GetObjectA( iconinfo->hbmColor, sizeof(bmpXor), &bmpXor ); - GetObjectA( iconinfo->hbmMask, sizeof(bmpAnd), &bmpAnd ); + TRACE("color %p, mask %p, hotspot %ux%u, fIcon %d\n", + iconinfo->hbmColor, iconinfo->hbmMask, + iconinfo->xHotspot, iconinfo->yHotspot, iconinfo->fIcon); + + if (iconinfo->hbmColor) + { + GetObjectW( iconinfo->hbmColor, sizeof(bmpXor), &bmpXor ); + TRACE("color: width %d, height %d, width bytes %d, planes %u, bpp %u\n", + bmpXor.bmWidth, bmpXor.bmHeight, bmpXor.bmWidthBytes, + bmpXor.bmPlanes, bmpXor.bmBitsPixel); + } + GetObjectW( iconinfo->hbmMask, sizeof(bmpAnd), &bmpAnd ); + TRACE("mask: width %d, height %d, width bytes %d, planes %u, bpp %u\n", + bmpAnd.bmWidth, bmpAnd.bmHeight, bmpAnd.bmWidthBytes, + bmpAnd.bmPlanes, bmpAnd.bmBitsPixel); sizeXor = iconinfo->hbmColor ? (bmpXor.bmHeight * bmpXor.bmWidthBytes) : 0; - sizeAnd = bmpAnd.bmHeight * bmpAnd.bmWidthBytes; + sizeAnd = bmpAnd.bmHeight * get_bitmap_width_bytes(bmpAnd.bmWidth, 1); hObj = GlobalAlloc16( GMEM_MOVEABLE, sizeof(CURSORICONINFO) + sizeXor + sizeAnd ); if (hObj) { + HDC hdc; + BITMAPINFO bi; CURSORICONINFO *info; info = (CURSORICONINFO *)GlobalLock16( hObj ); @@ -1860,15 +1875,27 @@ HICON WINAPI CreateIconIndirect(PICONINF else { info->nWidth = bmpAnd.bmWidth; - info->nHeight = bmpAnd.bmHeight / 2; - info->nWidthBytes = bmpAnd.bmWidthBytes; - info->bPlanes = bmpAnd.bmPlanes; - info->bBitsPerPixel = bmpAnd.bmBitsPixel; + info->nHeight = bmpAnd.bmHeight * 2; + info->nWidthBytes = get_bitmap_width_bytes(bmpAnd.bmWidth, 1); + info->bPlanes = 1; + info->bBitsPerPixel = 1; } /* Transfer the bitmap bits to the CURSORICONINFO structure */ - GetBitmapBits( iconinfo->hbmMask, sizeAnd, (char*)(info + 1) ); + /* Some apps pass a color bitmap as a mask, convert it to b/w */ + hdc = GetDC( 0 ); + memset(&bi, 0, sizeof(bi) ); + bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); + bi.bmiHeader.biWidth = bmpAnd.bmWidth; + bi.bmiHeader.biHeight = bmpAnd.bmHeight; + bi.bmiHeader.biPlanes = 1; + bi.bmiHeader.biBitCount = 1; + bi.bmiHeader.biCompression = BI_RGB; + bi.bmiHeader.biSizeImage = sizeAnd; + GetDIBits( hdc, iconinfo->hbmMask, 0, bmpAnd.bmHeight, (char*)(info + 1), &bi, DIB_RGB_COLORS ); + ReleaseDC( 0, hdc ); + if (iconinfo->hbmColor) GetBitmapBits( iconinfo->hbmColor, sizeXor, (char*)(info + 1) + sizeAnd ); GlobalUnlock16( hObj ); }
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
90
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
Results per page:
10
25
50
100
200