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 2006
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
5 participants
746 discussions
Start a n
N
ew thread
Eric Pouech : dbghelp: Properly handle variable with const value ( ie without location) in dwarf code.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 820acf0901da4be07d5e347d9633de857f6534da URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=820acf0901da4be07d5e347…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Thu Aug 3 19:36:10 2006 +0200 dbghelp: Properly handle variable with const value (ie without location) in dwarf code. --- dlls/dbghelp/dwarf.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index 01250a5..a618986 100644 --- a/dlls/dbghelp/dwarf.c +++ b/dlls/dbghelp/dwarf.c @@ -1050,20 +1050,20 @@ static void dwarf2_parse_variable(dwarf2 dwarf2_debug_info_t* di) { struct symt* param_type; - union attribute loc; + union attribute name, loc, value; BOOL is_pmt = di->abbrev->tag == DW_TAG_formal_parameter; TRACE("%s, for %s\n", dwarf2_debug_ctx(subpgm->ctx), dwarf2_debug_di(di)); param_type = dwarf2_lookup_type(subpgm->ctx, di); - if (dwarf2_find_attribute(di, DW_AT_location, &loc)) + dwarf2_find_name(subpgm->ctx, di, &name, "parameter"); + if (dwarf2_find_attribute(di, DW_AT_location, &loc) && loc.block) { union attribute name; union attribute ext; long offset; int in_reg; - dwarf2_find_name(subpgm->ctx, di, &name, "parameter"); offset = dwarf2_compute_location(subpgm->ctx, loc.block, &in_reg); TRACE("found parameter %s/%ld (reg=%d) at %s\n", name.string, offset, in_reg, dwarf2_debug_ctx(subpgm->ctx)); @@ -1094,6 +1094,10 @@ static void dwarf2_parse_variable(dwarf2 break; } } + if (dwarf2_find_attribute(di, DW_AT_const_value, &value)) + { + FIXME("NIY (const value %08lx for %s\n", value.uvalue, name.string); + } if (is_pmt && subpgm->func && subpgm->func->type) symt_add_function_signature_parameter(subpgm->ctx->module, (struct symt_function_signature*)subpgm->func->type,
1
0
0
0
Alexandre Julliard : server: Abstract the epoll functions a bit more.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 2f4072740e7de3710941f0f09757718022053aca URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2f4072740e7de3710941f0f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Aug 3 19:56:55 2006 +0200 server: Abstract the epoll functions a bit more. --- server/fd.c | 114 ++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 61 insertions(+), 53 deletions(-) diff --git a/server/fd.c b/server/fd.c index 6df422e..02aa88d 100644 --- a/server/fd.c +++ b/server/fd.c @@ -354,10 +354,16 @@ static int active_users; static int allocated_users; /* count of allocated entries in the array */ static struct fd **freelist; /* list of free entries in the array */ +static int get_next_timeout(void); + #ifdef USE_EPOLL static int epoll_fd; -static struct epoll_event *epoll_events; + +static inline void init_epoll(void) +{ + epoll_fd = epoll_create( 128 ); +} /* set the events that epoll waits for on this fd; helper for set_fd_events */ static inline void set_fd_epoll_events( struct fd *fd, int user, int events ) @@ -398,12 +404,61 @@ static inline void set_fd_epoll_events( } } -#else /* USE_EPOLL */ +static inline void remove_epoll_user( struct fd *fd, int user ) +{ + if (epoll_fd == -1) return; -static inline void set_fd_epoll_events( struct fd *fd, int user, int events ) + if (pollfd[user].fd != -1) + { + struct epoll_event dummy; + epoll_ctl( epoll_fd, EPOLL_CTL_DEL, fd->unix_fd, &dummy ); + } +} + +static inline void main_loop_epoll(void) { + int i, ret, timeout; + struct epoll_event events[128]; + + assert( POLLIN == EPOLLIN ); + assert( POLLOUT == EPOLLOUT ); + assert( POLLERR == EPOLLERR ); + assert( POLLHUP == EPOLLHUP ); + + if (epoll_fd == -1) return; + + while (active_users) + { + timeout = get_next_timeout(); + + if (!active_users) break; /* last user removed by a timeout */ + if (epoll_fd == -1) break; /* an error occurred with epoll */ + + ret = epoll_wait( epoll_fd, events, sizeof(events)/sizeof(events[0]), timeout ); + + /* put the events into the pollfd array first, like poll does */ + for (i = 0; i < ret; i++) + { + int user = events[i].data.u32; + pollfd[user].revents = events[i].events; + } + + /* read events from the pollfd array, as set_fd_events may modify them */ + for (i = 0; i < ret; i++) + { + int user = events[i].data.u32; + if (pollfd[user].revents) fd_poll_event( poll_users[user], pollfd[user].revents ); + } + } } +#else /* USE_EPOLL */ + +static inline void init_epoll(void) { } +static inline void set_fd_epoll_events( struct fd *fd, int user, int events ) { } +static inline void remove_epoll_user( struct fd *fd, int user ) { } +static inline void main_loop_epoll(void) { } + #endif /* USE_EPOLL */ @@ -434,16 +489,7 @@ static int add_poll_user( struct fd *fd } poll_users = newusers; pollfd = newpoll; -#ifdef USE_EPOLL - if (!allocated_users) epoll_fd = epoll_create( new_count ); - if (epoll_fd != -1) - { - struct epoll_event *new_events; - if (!(new_events = realloc( epoll_events, new_count * sizeof(*epoll_events) ))) - return -1; - epoll_events = new_events; - } -#endif + if (!allocated_users) init_epoll(); allocated_users = new_count; } ret = nb_users++; @@ -462,13 +508,7 @@ static void remove_poll_user( struct fd assert( user >= 0 ); assert( poll_users[user] == fd ); -#ifdef USE_EPOLL - if (epoll_fd != -1 && pollfd[user].fd != -1) - { - struct epoll_event dummy; - epoll_ctl( epoll_fd, EPOLL_CTL_DEL, fd->unix_fd, &dummy ); - } -#endif + remove_epoll_user( fd, user ); pollfd[user].fd = -1; pollfd[user].events = 0; pollfd[user].revents = 0; @@ -529,40 +569,8 @@ void main_loop(void) { int i, ret, timeout; -#ifdef USE_EPOLL - assert( POLLIN == EPOLLIN ); - assert( POLLOUT == EPOLLOUT ); - assert( POLLERR == EPOLLERR ); - assert( POLLHUP == EPOLLHUP ); - - if (epoll_fd != -1) - { - while (active_users) - { - timeout = get_next_timeout(); - - if (!active_users) break; /* last user removed by a timeout */ - if (epoll_fd == -1) break; /* an error occurred with epoll */ - - ret = epoll_wait( epoll_fd, epoll_events, allocated_users, timeout ); - - /* put the events into the pollfd array first, like poll does */ - for (i = 0; i < ret; i++) - { - int user = epoll_events[i].data.u32; - pollfd[user].revents = epoll_events[i].events; - } - - /* read events from the pollfd array, as set_fd_events may modify them */ - for (i = 0; i < ret; i++) - { - int user = epoll_events[i].data.u32; - if (pollfd[user].revents) fd_poll_event( poll_users[user], pollfd[user].revents ); - } - } - } + main_loop_epoll(); /* fall through to normal poll loop */ -#endif /* USE_EPOLL */ while (active_users) {
1
0
0
0
Mikołaj Zalewski : shell32: Add property ids to header files.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 7523fd321a30d04b8e26485fdcb1918aba2d771b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7523fd321a30d04b8e26485…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Thu Aug 3 18:55:52 2006 +0200 shell32: Add property ids to header files. --- include/ntquery.h | 21 +++++++++++++++++++++ include/shlguid.h | 12 ++++++++++++ 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/include/ntquery.h b/include/ntquery.h index ec7e1c2..8ebe074 100644 --- a/include/ntquery.h +++ b/include/ntquery.h @@ -44,4 +44,25 @@ #include <poppack.h> STDAPI CIState(WCHAR const *, WCHAR const *, CI_STATE *); +#define PSGUID_STORAGE {0xb725f130, 0x47ef, 0x101a, {0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac}} +#define PID_STG_DIRECTORY ((PROPID)0x02) +#define PID_STG_CLASSID ((PROPID)0x03) +#define PID_STG_STORAGETYPE ((PROPID)0x04) +#define PID_STG_VOLUME_ID ((PROPID)0x05) +#define PID_STG_PARENT_WORKID ((PROPID)0x06) +#define PID_STG_SECONDARYSTORE ((PROPID)0x07) +#define PID_STG_FILEINDEX ((PROPID)0x08) +#define PID_STG_LASTCHANGEUSN ((PROPID)0x09) +#define PID_STG_NAME ((PROPID)0x0a) +#define PID_STG_PATH ((PROPID)0x0b) +#define PID_STG_SIZE ((PROPID)0x0c) +#define PID_STG_ATTRIBUTES ((PROPID)0x0d) +#define PID_STG_WRITETIME ((PROPID)0x0e) +#define PID_STG_CREATETIME ((PROPID)0x0f) +#define PID_STG_ACCESSTIME ((PROPID)0x10) +#define PID_STG_CHANGETIME ((PROPID)0x11) +#define PID_STG_CONTENTS ((PROPID)0x13) +#define PID_STG_SHORTNAME ((PROPID)0x14) +#define PID_STG_MAX PID_STG_SHORTNAME + #endif diff --git a/include/shlguid.h b/include/shlguid.h index 985aa91..bc25a4b 100644 --- a/include/shlguid.h +++ b/include/shlguid.h @@ -110,6 +110,8 @@ DEFINE_GUID(CLSID_DragDropHelper, 0x4657 DEFINE_GUID(CLSID_AutoComplete, 0x00bb2763, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62); +#define PSGUID_SHELLDETAILS {0x28636aa6, 0x953d, 0x11d2, 0xb5, 0xd6, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0} +DEFINE_GUID(FMTID_ShellDetails, 0x28636aa6, 0x953d, 0x11d2, 0xb5, 0xd6, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0); #define PID_FINDDATA 0 #define PID_NETRESOURCE 1 #define PID_DESCRIPTIONID 2 @@ -117,4 +119,14 @@ #define PID_WHICHFOLDER 3 #define PID_NETWORKLOCATION 4 #define PID_COMPUTERNAME 5 +/* Note: PSGUID_STORAGE defined in ntquery.h */ +DEFINE_GUID(FMTID_Storage, 0xb725f130, 0x47ef, 0x101a, 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac); +/* PID_* for FMTID_Storage defined in ntquery.h*/ + +#define PSGUID_DISPLACED {0x9b174b33, 0x40ff, 0x11d2, 0xa2, 0x7e, 0x0, 0xc0, 0x4f, 0xc3, 0x8, 0x71} +DEFINE_GUID(FMTID_Displaced, 0x9b174b33, 0x40ff, 0x11d2, 0xa2, 0x7e, 0x0, 0xc0, 0x4f, 0xc3, 0x8, 0x71); +#define PID_DISPLACED_FROM 2 +#define PID_DISPLACED_DATE 3 + + #endif /* __WINE_SHLGUID_H */
1
0
0
0
Francois Gouget : include: Add the ShellFolderViewOC coclass.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 0a81f304605c9ba461a36049515989b5e61fecf2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0a81f304605c9ba461a3604…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Aug 3 19:02:21 2006 +0200 include: Add the ShellFolderViewOC coclass. --- include/shldisp.idl | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/shldisp.idl b/include/shldisp.idl index b786362..ee72261 100644 --- a/include/shldisp.idl +++ b/include/shldisp.idl @@ -83,3 +83,13 @@ interface IFolderViewOC : IDispatch { HRESULT SetFolderView( [in] IDispatch *pdisp ); } + +[ + uuid(9ba05971-f6a8-11cf-a442-00a0c90a8f39), + hidden +] +coclass ShellFolderViewOC +{ + [default] interface IFolderViewOC; + [default, source] dispinterface DShellFolderViewEvents; +}
1
0
0
0
Stefan Siebert : oleaut32: GetTypeInfoType - Return TYPE_E_ELEMENTNOTFOUND if index out of bounds.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 9776f5b83fbd30733b1a1f8598f67311c4f50cfc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=9776f5b83fbd30733b1a1f8…
Author: Stefan Siebert <stefan.siebert(a)web.de> Date: Thu Aug 3 17:54:06 2006 +0200 oleaut32: GetTypeInfoType - Return TYPE_E_ELEMENTNOTFOUND if index out of bounds. --- dlls/oleaut32/typelib.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index e648735..d75b665 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -3602,6 +3602,9 @@ static HRESULT WINAPI ITypeLib2_fnGetTyp ITypeLibImpl *This = (ITypeLibImpl *)iface; int i; ITypeInfoImpl *pTInfo = This->pTypeInfo; + + if ((ITypeLib2_fnGetTypeInfoCount(iface) < index + 1) || (index < 0)) + return TYPE_E_ELEMENTNOTFOUND; TRACE("(%p) index %d\n", This, index);
1
0
0
0
Dmitry Timoshkov : hlink: Avoid double computation of the string length.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: f740a2806215c43ea6a37b534a1163919409ba63 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f740a2806215c43ea6a37b5…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Thu Aug 3 23:39:00 2006 +0900 hlink: Avoid double computation of the string length. --- dlls/hlink/link.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dlls/hlink/link.c b/dlls/hlink/link.c index cce6955..4d3b074 100644 --- a/dlls/hlink/link.c +++ b/dlls/hlink/link.c @@ -72,24 +72,28 @@ static inline HlinkImpl* HlinkImpl_from_ static inline LPWSTR strdupW( LPCWSTR str ) { LPWSTR r; + UINT len; if (!str) return NULL; - r = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(str)+1) * sizeof (WCHAR)); + len = (lstrlenW(str)+1) * sizeof (WCHAR); + r = HeapAlloc(GetProcessHeap(), 0, len); if (r) - lstrcpyW(r, str); + memcpy(r, str, len); return r; } static inline LPWSTR co_strdupW( LPCWSTR str ) { LPWSTR r; + UINT len; if (!str) return NULL; - r = CoTaskMemAlloc((lstrlenW(str)+1) * sizeof (WCHAR)); + len = (lstrlenW(str)+1) * sizeof (WCHAR); + r = CoTaskMemAlloc(len); if (r) - lstrcpyW(r, str); + memcpy(r, str, len); return r; }
1
0
0
0
Alexandre Julliard : winex11.drv: Comment out the XCloseDisplay call on process detach.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 145e06040d053aedd7d728071809ac580484f3b6 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=145e06040d053aedd7d7280…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Aug 3 19:29:44 2006 +0200 winex11.drv: Comment out the XCloseDisplay call on process detach. It has a tendency to trigger X11 bugs, and it's not really useful anyway. --- dlls/winex11.drv/init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c index 651b2b4..b3ee171 100644 --- a/dlls/winex11.drv/init.c +++ b/dlls/winex11.drv/init.c @@ -108,8 +108,8 @@ static void device_init(void) void X11DRV_GDI_Finalize(void) { X11DRV_PALETTE_Cleanup(); - XCloseDisplay( gdi_display ); - gdi_display = NULL; + /* don't bother to close the display, it often triggers X bugs */ + /* XCloseDisplay( gdi_display ); */ } /**********************************************************************
1
0
0
0
Benjamin Arai : oleaut32: Implement function olefont:OLEFontImpl_IsEqual.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: be37e9510568c5e6afd2ffd7de3a70a42aed5d13 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=be37e9510568c5e6afd2ffd…
Author: Benjamin Arai <me(a)benjaminarai.com> Date: Wed Aug 2 16:47:48 2006 -0700 oleaut32: Implement function olefont:OLEFontImpl_IsEqual. --- dlls/oleaut32/olefont.c | 33 +++++++++++++++++++++++++++++++-- dlls/oleaut32/tests/olefont.c | 20 -------------------- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index bdde164..ee52a05 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -1139,8 +1139,37 @@ static HRESULT WINAPI OLEFontImpl_IsEqua IFont* iface, IFont* pFontOther) { - FIXME("(%p, %p), stub!\n",iface,pFontOther); - return E_NOTIMPL; + OLEFontImpl *left = (OLEFontImpl *)iface; + OLEFontImpl *right = (OLEFontImpl *)pFontOther; + HRESULT hres; + INT left_len,right_len; + + if((iface == NULL) || (pFontOther == NULL)) + return E_POINTER; + else if (left->description.cySize.s.Lo != right->description.cySize.s.Lo) + return S_FALSE; + else if (left->description.cySize.s.Hi != right->description.cySize.s.Hi) + return S_FALSE; + else if (left->description.sWeight != right->description.sWeight) + return S_FALSE; + else if (left->description.sCharset != right->description.sCharset) + return S_FALSE; + else if (left->description.fItalic != right->description.fItalic) + return S_FALSE; + else if (left->description.fUnderline != right->description.fUnderline) + return S_FALSE; + else if (left->description.fStrikethrough != right->description.fStrikethrough) + return S_FALSE; + + /* Check from string */ + left_len = strlenW(left->description.lpstrName); + right_len = strlenW(right->description.lpstrName); + hres = CompareStringW(0,0,left->description.lpstrName, left_len, + right->description.lpstrName, right_len); + if (hres != CSTR_EQUAL) + return S_FALSE; + + return S_OK; } /************************************************************************ diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index bdc7536..bd5fb73 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -503,27 +503,21 @@ static void test_IsEqual() pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); ifnt2 = pvObj2; hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_OK, "IFont_IsEqual: (EQUAL) Expected S_OK but got 0x%08lx\n",hres); - } IFont_Release(ifnt2); /* Check for bad pointer */ hres = IFont_IsEqual(ifnt,NULL); - todo_wine { ok(hres == E_POINTER, "IFont_IsEqual: (NULL) Expected 0x80004003 but got 0x%08lx\n",hres); - } /* Test strName */ fd.lpstrName = (WCHAR*)arial_font; pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (strName) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.lpstrName = (WCHAR*)system_font; IFont_Release(ifnt2); @@ -532,10 +526,8 @@ static void test_IsEqual() pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); ifnt2 = pvObj2; hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Lo font size) Expected S_FALSE but got 0x%08lx\n",hres); - } S(fd.cySize).Lo = 100; IFont_Release(ifnt2); @@ -544,10 +536,8 @@ static void test_IsEqual() pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); ifnt2 = pvObj2; hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Hi font size) Expected S_FALSE but got 0x%08lx\n",hres); - } S(fd.cySize).Hi = 100; IFont_Release(ifnt2); @@ -556,10 +546,8 @@ static void test_IsEqual() pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); ifnt2 = pvObj2; hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Weight) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.sWeight = 0; IFont_Release(ifnt2); @@ -567,10 +555,8 @@ static void test_IsEqual() fd.sCharset = 1; pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Charset) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.sCharset = 0; IFont_Release(ifnt2); @@ -578,10 +564,8 @@ static void test_IsEqual() fd.fItalic = 1; pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Italic) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.fItalic = 0; IFont_Release(ifnt2); @@ -589,10 +573,8 @@ static void test_IsEqual() fd.fUnderline = 1; pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Underline) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.fUnderline = 0; IFont_Release(ifnt2); @@ -600,10 +582,8 @@ static void test_IsEqual() fd.fStrikethrough = 1; pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); hres = IFont_IsEqual(ifnt,ifnt2); - todo_wine { ok(hres == S_FALSE, "IFont_IsEqual: (Strikethrough) Expected S_FALSE but got 0x%08lx\n",hres); - } fd.fStrikethrough = 0; IFont_Release(ifnt2);
1
0
0
0
Benjamin Arai : oleaut32: Conformance test for olefont:OLEFontImpl_IsEqual.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: 41641554f4c4563a0c794375bc7ce60d13201c88 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=41641554f4c4563a0c79437…
Author: Benjamin Arai <me(a)benjaminarai.com> Date: Wed Aug 2 16:47:28 2006 -0700 oleaut32: Conformance test for olefont:OLEFontImpl_IsEqual. --- dlls/oleaut32/tests/olefont.c | 139 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 139 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index 341ef61..bdc7536 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -473,6 +473,144 @@ static void test_Invoke(void) IFontDisp_Release(fontdisp); } +static void test_IsEqual() +{ + FONTDESC fd; + static const WCHAR system_font[] = { 'S','y','s','t','e','m',0 }; + static const WCHAR arial_font[] = { 'A','r','i','a','l',0 }; + LPVOID pvObj = NULL; + LPVOID pvObj2 = NULL; + IFont* ifnt = NULL; + IFont* ifnt2 = NULL; + HRESULT hres; + + /* Basic font description */ + fd.cbSizeofstruct = sizeof(FONTDESC); + fd.lpstrName = (WCHAR*)system_font; + S(fd.cySize).Lo = 100; + S(fd.cySize).Hi = 100; + fd.sWeight = 0; + fd.sCharset = 0; + fd.fItalic = 0; + fd.fUnderline = 0; + fd.fStrikethrough = 0; + + /* Create font */ + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj); + ifnt = pvObj; + + /* Test equal fonts */ + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + ifnt2 = pvObj2; + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_OK, + "IFont_IsEqual: (EQUAL) Expected S_OK but got 0x%08lx\n",hres); + } + IFont_Release(ifnt2); + + /* Check for bad pointer */ + hres = IFont_IsEqual(ifnt,NULL); + todo_wine { + ok(hres == E_POINTER, + "IFont_IsEqual: (NULL) Expected 0x80004003 but got 0x%08lx\n",hres); + } + + /* Test strName */ + fd.lpstrName = (WCHAR*)arial_font; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (strName) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.lpstrName = (WCHAR*)system_font; + IFont_Release(ifnt2); + + /* Test lo font size */ + S(fd.cySize).Lo = 10000; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + ifnt2 = pvObj2; + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Lo font size) Expected S_FALSE but got 0x%08lx\n",hres); + } + S(fd.cySize).Lo = 100; + IFont_Release(ifnt2); + + /* Test hi font size */ + S(fd.cySize).Hi = 10000; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + ifnt2 = pvObj2; + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Hi font size) Expected S_FALSE but got 0x%08lx\n",hres); + } + S(fd.cySize).Hi = 100; + IFont_Release(ifnt2); + + /* Test font weight */ + fd.sWeight = 100; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + ifnt2 = pvObj2; + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Weight) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.sWeight = 0; + IFont_Release(ifnt2); + + /* Test charset */ + fd.sCharset = 1; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Charset) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.sCharset = 0; + IFont_Release(ifnt2); + + /* Test italic setting */ + fd.fItalic = 1; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Italic) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.fItalic = 0; + IFont_Release(ifnt2); + + /* Test underline setting */ + fd.fUnderline = 1; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Underline) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.fUnderline = 0; + IFont_Release(ifnt2); + + /* Test strikethrough setting */ + fd.fStrikethrough = 1; + pOleCreateFontIndirect(&fd, &IID_IFont, &pvObj2); + hres = IFont_IsEqual(ifnt,ifnt2); + todo_wine { + ok(hres == S_FALSE, + "IFont_IsEqual: (Strikethrough) Expected S_FALSE but got 0x%08lx\n",hres); + } + fd.fStrikethrough = 0; + IFont_Release(ifnt2); + + /* Free IFont. */ + IFont_Release(ifnt); +} + START_TEST(olefont) { hOleaut32 = LoadLibraryA("oleaut32.dll"); @@ -496,4 +634,5 @@ START_TEST(olefont) test_font_events_disp(); test_GetIDsOfNames(); test_Invoke(); + test_IsEqual(); }
1
0
0
0
Robert Reif : winnt.h: Add missing define.
by Alexandre Julliard
03 Aug '06
03 Aug '06
Module: wine Branch: refs/heads/master Commit: fc7f5b3364eeda5fbda43c322b04cab70379501c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=fc7f5b3364eeda5fbda43c3…
Author: Robert Reif <reif(a)earthlink.net> Date: Thu Aug 3 08:02:21 2006 -0400 winnt.h: Add missing define. --- include/winnt.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index c8eca8f..f212ddd 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -3265,6 +3265,7 @@ #define SE_DACL_AUTO_INHERITED 0x000004 #define SE_SACL_AUTO_INHERITED 0x00000800 #define SE_DACL_PROTECTED 0x00001000 #define SE_SACL_PROTECTED 0x00002000 +#define SE_RM_CONTROL_VALID 0x00004000 #define SE_SELF_RELATIVE 0x00008000 typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION;
1
0
0
0
← Newer
1
...
64
65
66
67
68
69
70
...
75
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
Results per page:
10
25
50
100
200