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
March 2009
----- 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
834 discussions
Start a n
N
ew thread
Mikołaj Zalewski : kernel32: Implement QueryFullProcessImageFileNameW.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 9c9532265d6095e81ceb9c219ade9e101dff471e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c9532265d6095e81ceb9c219…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Sun Mar 29 23:36:33 2009 +0200 kernel32: Implement QueryFullProcessImageFileNameW. --- dlls/kernel32/kernel32.spec | 2 + dlls/kernel32/process.c | 53 +++++++++++++++++++++ dlls/kernel32/tests/process.c | 103 +++++++++++++++++++++++++++++++++++++++++ dlls/ntdll/process.c | 2 + dlls/ntdll/tests/info.c | 1 + include/winbase.h | 5 ++ 6 files changed, 166 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9c9532265d6095e81ceb9…
1
0
0
0
Massimo Del Fedele : gdi32: Fix PATH_add_outline when mapping mode != MM_TEXT.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: da6a94cd96c0593ae8aefda7d888354f7a8b07d6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=da6a94cd96c0593ae8aefda7d…
Author: Massimo Del Fedele <max(a)veneto.com> Date: Mon Mar 30 19:52:02 2009 +0200 gdi32: Fix PATH_add_outline when mapping mode != MM_TEXT. --- dlls/gdi32/path.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index 19d392f..88b7b0a 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -1353,7 +1353,6 @@ static BOOL PATH_add_outline(DC *dc, INT x, INT y, TTPOLYGONHEADER *header, DWOR pt.x = x + int_from_fixed(header->pfxStart.x); pt.y = y - int_from_fixed(header->pfxStart.y); - LPtoDP(dc->hSelf, &pt, 1); PATH_AddEntry(pPath, &pt, PT_MOVETO); curve = (TTPOLYCURVE *)(header + 1); @@ -1372,7 +1371,6 @@ static BOOL PATH_add_outline(DC *dc, INT x, INT y, TTPOLYGONHEADER *header, DWOR { pt.x = x + int_from_fixed(curve->apfx[i].x); pt.y = y - int_from_fixed(curve->apfx[i].y); - LPtoDP(dc->hSelf, &pt, 1); PATH_AddEntry(pPath, &pt, PT_LINETO); } break; @@ -1391,13 +1389,11 @@ static BOOL PATH_add_outline(DC *dc, INT x, INT y, TTPOLYGONHEADER *header, DWOR pts[0].x = x + int_from_fixed(ptfx.x); pts[0].y = y - int_from_fixed(ptfx.y); - LPtoDP(dc->hSelf, &pts[0], 1); for(i = 0; i < curve->cpfx; i++) { pts[i + 1].x = x + int_from_fixed(curve->apfx[i].x); pts[i + 1].y = y - int_from_fixed(curve->apfx[i].y); - LPtoDP(dc->hSelf, &pts[i + 1], 1); } PATH_BezierTo(pPath, pts, curve->cpfx + 1);
1
0
0
0
Massimo Del Fedele : gdi32: PATH_ExtTextOut remove incorrect shift to DC origin.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: a11a450e338eef01fe61b6790324699139f81bb5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a11a450e338eef01fe61b6790…
Author: Massimo Del Fedele <max(a)veneto.com> Date: Mon Mar 30 19:51:12 2009 +0200 gdi32: PATH_ExtTextOut remove incorrect shift to DC origin. --- dlls/gdi32/path.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index 195f413..19d392f 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -1429,7 +1429,6 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc, unsigned int idx; double cosEsc, sinEsc; LOGFONTW lf; - POINT org; HDC hdc = dc->hSelf; INT offset = 0, xoff = 0, yoff = 0; @@ -1450,8 +1449,6 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc, sinEsc = 0; } - GetDCOrgEx(hdc, &org); - for (idx = 0; idx < count; idx++) { static const MAT2 identity = { {0,1},{0,0},{0,0},{0,1} }; @@ -1470,7 +1467,7 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc, GetGlyphOutlineW(hdc, str[idx], GGO_GLYPH_INDEX | GGO_NATIVE, &gm, dwSize, outline, &identity); - PATH_add_outline(dc, org.x + x + xoff, org.x + y + yoff, outline, dwSize); + PATH_add_outline(dc, x + xoff, y + yoff, outline, dwSize); HeapFree(GetProcessHeap(), 0, outline); }
1
0
0
0
Massimo Del Fedele : gdi32: Correctly handle space char on Path_ExtTextOut( ).
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 23acdb7143569e2c0839f6f88c4462f2ed98068b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=23acdb7143569e2c0839f6f88…
Author: Massimo Del Fedele <max(a)veneto.com> Date: Mon Mar 30 19:49:04 2009 +0200 gdi32: Correctly handle space char on Path_ExtTextOut(). --- dlls/gdi32/path.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index 3ad551e..195f413 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -1460,16 +1460,20 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc, void *outline; dwSize = GetGlyphOutlineW(hdc, str[idx], GGO_GLYPH_INDEX | GGO_NATIVE, &gm, 0, NULL, &identity); - if (!dwSize) return FALSE; + if (dwSize == GDI_ERROR) return FALSE; - outline = HeapAlloc(GetProcessHeap(), 0, dwSize); - if (!outline) return FALSE; + /* add outline only if char is printable */ + if(dwSize) + { + outline = HeapAlloc(GetProcessHeap(), 0, dwSize); + if (!outline) return FALSE; - GetGlyphOutlineW(hdc, str[idx], GGO_GLYPH_INDEX | GGO_NATIVE, &gm, dwSize, outline, &identity); + GetGlyphOutlineW(hdc, str[idx], GGO_GLYPH_INDEX | GGO_NATIVE, &gm, dwSize, outline, &identity); - PATH_add_outline(dc, org.x + x + xoff, org.x + y + yoff, outline, dwSize); + PATH_add_outline(dc, org.x + x + xoff, org.x + y + yoff, outline, dwSize); - HeapFree(GetProcessHeap(), 0, outline); + HeapFree(GetProcessHeap(), 0, outline); + } if (dx) {
1
0
0
0
Massimo Del Fedele : gdi32/tests: Add test for GetGlyphOutlineW() requesting buffer size for space char.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 97e81bc3bdc49456ceb479a76e39ece84133e912 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=97e81bc3bdc49456ceb479a76…
Author: Massimo Del Fedele <max(a)veneto.com> Date: Mon Mar 30 19:47:29 2009 +0200 gdi32/tests: Add test for GetGlyphOutlineW() requesting buffer size for space char. --- dlls/gdi32/tests/font.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index cc5e3f5..c10d6e8 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2887,6 +2887,23 @@ static void test_GetGlyphOutline(void) ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %u\n", GetLastError()); } + /* test for needed buffer size request on space char */ + memset(&gm, 0, sizeof(gm)); + SetLastError(0xdeadbeef); + ret = GetGlyphOutlineW(hdc, ' ', GGO_NATIVE, &gm, 0, NULL, &mat); + if (GetLastError() != ERROR_CALL_NOT_IMPLEMENTED) + ok(ret == 0, "GetGlyphOutlineW should return 0 buffer size for space char\n"); + + /* requesting buffer size for space char + error */ + memset(&gm, 0, sizeof(gm)); + SetLastError(0xdeadbeef); + ret = GetGlyphOutlineW(0, ' ', GGO_NATIVE, &gm, 0, NULL, NULL); + if (GetLastError() != ERROR_CALL_NOT_IMPLEMENTED) + { + ok(ret == GDI_ERROR, "GetGlyphOutlineW should return GDI_ERROR\n"); + ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %u\n", GetLastError()); + } + SelectObject(hdc, old_hfont); DeleteObject(hfont); DeleteDC(hdc);
1
0
0
0
Rob Shearman : include: Add a stub implementation of gai_strerror{A, W}.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: fc10ba8fc75c89f11c716201c86f49f4ae00d1d5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fc10ba8fc75c89f11c716201c…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Tue Mar 31 13:38:04 2009 +0100 include: Add a stub implementation of gai_strerror{A,W}. --- include/ws2tcpip.h | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h index 07b357b..8084170 100644 --- a/include/ws2tcpip.h +++ b/include/ws2tcpip.h @@ -112,6 +112,38 @@ typedef ADDRINFOA ADDRINFO, *LPADDRINFO; extern "C" { #endif +#define GAI_STRERROR_BUFFER_SIZE 1024 + +static inline char *gai_strerrorA(int errcode) +{ + static char buffer[GAI_STRERROR_BUFFER_SIZE + 1]; + + /* FIXME: should format message from system, ignoring inserts in neutral + * language */ + buffer[0] = '\0'; + + return buffer; +} + +static inline WCHAR *gai_strerrorW(int errcode) +{ + static WCHAR buffer[GAI_STRERROR_BUFFER_SIZE + 1]; + + /* FIXME: should format message from system, ignoring inserts in neutral + * language */ + buffer[0] = '\0'; + + return buffer; +} + +#ifdef USE_WS_PREFIX +# define WS_gai_strerror WINELIB_NAME_AW(gai_strerror) +#elif defined(WINE_NO_UNICODE_MACROS) +# define gai_strerror gai_strerrorA +#else +# define gai_strerror WINELIB_NAME_AW(gai_strerror) +#endif + void WINAPI WS(freeaddrinfo)(LPADDRINFO); #define FreeAddrInfoA WS(freeaddrinfo) void WINAPI FreeAddrInfoW(PADDRINFOW);
1
0
0
0
Rob Shearman : include: Add TCP and IPv6 option defines to ws2ipdef.h.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: b4ee082d8a211a2f921aa0f00ac6ec148d54ece3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4ee082d8a211a2f921aa0f00…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Tue Mar 31 13:37:58 2009 +0100 include: Add TCP and IPv6 option defines to ws2ipdef.h. Add more IP option defines. Add defines for address string lengths for IPv4 and IPv6. --- include/ws2ipdef.h | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-) diff --git a/include/ws2ipdef.h b/include/ws2ipdef.h index 588fefc..1fcfd27 100644 --- a/include/ws2ipdef.h +++ b/include/ws2ipdef.h @@ -91,7 +91,16 @@ typedef struct _INTERFACE_INFO #define IP_BLOCK_SOURCE 17 #define IP_UNBLOCK_SOURCE 18 #define IP_PKTINFO 19 +#define IP_HOPLIMIT 21 #define IP_RECEIVE_BROADCAST 22 +#define IP_RECVIF 24 +#define IP_RECVDSTADDR 25 +#define IP_IFLIST 28 +#define IP_ADD_IFLIST 29 +#define IP_DEL_IFLIST 30 +#define IP_UNICAST_IF 31 +#define IP_RTHDR 32 +#define IP_RECVRTHDR 38 #else #define WS_IP_OPTIONS 1 #define WS_IP_HDRINCL 2 @@ -108,7 +117,16 @@ typedef struct _INTERFACE_INFO #define WS_IP_BLOCK_SOURCE 17 #define WS_IP_UNBLOCK_SOURCE 18 #define WS_IP_PKTINFO 19 +#define WS_IP_HOPLIMIT 21 #define WS_IP_RECEIVE_BROADCAST 22 +#define WS_IP_RECVIF 24 +#define WS_IP_RECVDSTADDR 25 +#define WS_IP_IFLIST 28 +#define WS_IP_ADD_IFLIST 29 +#define WS_IP_DEL_IFLIST 30 +#define WS_IP_UNICAST_IF 31 +#define WS_IP_RTHDR 32 +#define WS_IP_RECVRTHDR 38 #endif /* USE_WS_PREFIX */ typedef struct WS(sockaddr_in6) @@ -144,6 +162,105 @@ struct WS(ip_msfilter) { struct WS(in_addr) imsf_slist[1]; } WS(IP_MSFILTER), *WS(PIP_MSFILTER); +#ifndef USE_WS_PREFIX +#define IPV6_OPTIONS 1 +#define IPV6_HDRINCL 2 +#define IPV6_UNICAST_HOPS 4 +#define IPV6_MULTICAST_IF 9 +#define IPV6_MULTICAST_HOPS 10 +#define IPV6_MULTICAST_LOOP 11 +#define IPV6_ADD_MEMBERSHIP 12 +#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP +#define IPV6_DROP_MEMBERSHIP 13 +#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP +#define IPV6_DONTFRAG 14 +#define IPV6_PKTINFO 19 +#define IPV6_HOPLIMIT 21 +#define IPV6_PROTECTION_LEVEL 23 +#define IPV6_RECVIF 24 +#define IPV6_RECVDSTADDR 25 +#define IPV6_CHECKSUM 26 +#define IPV6_V6ONLY 27 +#define IPV6_IFLIST 28 +#define IPV6_ADD_IFLIST 29 +#define IPV6_DEL_IFLIST 30 +#define IPV6_UNICAST_IF 31 +#define IPV6_RTHDR 32 +#define IPV6_RECVRTHDR 38 +#else +#define WS_IPV6_OPTIONS 1 +#define WS_IPV6_HDRINCL 2 +#define WS_IPV6_UNICAST_HOPS 4 +#define WS_IPV6_MULTICAST_IF 9 +#define WS_IPV6_MULTICAST_HOPS 10 +#define WS_IPV6_MULTICAST_LOOP 11 +#define WS_IPV6_ADD_MEMBERSHIP 12 +#define WS_IPV6_DROP_MEMBERSHIP 13 +#define WS_IPV6_LEAVE_GROUP WS_IPV6_DROP_MEMBERSHIP +#define WS_IPV6_DONTFRAG 14 +#define WS_IPV6_PKTINFO 19 +#define WS_IPV6_HOPLIMIT 21 +#define WS_IPV6_PROTECTION_LEVEL 23 +#define WS_IPV6_RECVIF 24 +#define WS_IPV6_RECVDSTADDR 25 +#define WS_IPV6_CHECKSUM 26 +#define WS_IPV6_V6ONLY 27 +#define WS_IPV6_IFLIST 28 +#define WS_IPV6_ADD_IFLIST 29 +#define WS_IPV6_DEL_IFLIST 30 +#define WS_IPV6_UNICAST_IF 31 +#define WS_IPV6_RTHDR 32 +#define WS_IPV6_RECVRTHDR 38 +#endif /* USE_WS_PREFIX */ + +#ifndef USE_WS_PREFIX +#define TCP_OFFLOAD_NO_PREFERENCE 0 +#define TCP_OFFLOAD_NOT_PREFERRED 1 +#define TCP_OFFLOAD_PREFERRED 2 +#else +#define WS_TCP_OFFLOAD_NO_PREFERENCE 0 +#define WS_TCP_OFFLOAD_NOT_PREFERRED 1 +#define WS_TCP_OFFLOAD_PREFERRED 2 +#endif /* USE_WS_PREFIX */ + +#ifndef USE_WS_PREFIX +/* TCP_NODELAY is defined elsewhere */ +#define TCP_EXPEDITED_1122 2 +#define TCP_KEEPALIVE 3 +#define TCP_MAXSEG 4 +#define TCP_MAXRT 5 +#define TCP_STDURG 6 +#define TCP_NOURG 7 +#define TCP_ATMARK 8 +#define TCP_NOSYNRETRIES 9 +#define TCP_TIMESTAMPS 10 +#define TCP_OFFLOAD_PREFERENCE 11 +#define TCP_CONGESTION_ALGORITHM 12 +#define TCP_DELAY_FIN_ACK 13 +#else +/* WS_TCP_NODELAY is defined elsewhere */ +#define WS_TCP_EXPEDITED_1122 2 +#define WS_TCP_KEEPALIVE 3 +#define WS_TCP_MAXSEG 4 +#define WS_TCP_MAXRT 5 +#define WS_TCP_STDURG 6 +#define WS_TCP_NOURG 7 +#define WS_TCP_ATMARK 8 +#define WS_TCP_NOSYNRETRIES 9 +#define WS_TCP_TIMESTAMPS 10 +#define WS_TCP_OFFLOAD_PREFERENCE 11 +#define WS_TCP_CONGESTION_ALGORITHM 12 +#define WS_TCP_DELAY_FIN_ACK 13 +#endif /* USE_WS_PREFIX */ + +#ifndef USE_WS_PREFIX +#define INET_ADDRSTRLEN 22 +#define INET6_ADDRSTRLEN 65 +#else +#define WS_INET_ADDRSTRLEN 22 +#define WS_INET6_ADDRSTRLEN 65 +#endif /* USE_WS_PREFIX */ + #ifdef __cplusplus } #endif
1
0
0
0
Rob Shearman : include: Move some declarations in ws2tcpip. h to where they belong in new ws2ipdef.h header.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 76fdd19476e809012cb5b0752764f052b8389a9c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=76fdd19476e809012cb5b0752…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Tue Mar 31 13:37:49 2009 +0100 include: Move some declarations in ws2tcpip.h to where they belong in new ws2ipdef.h header. --- include/Makefile.in | 1 + include/ws2ipdef.h | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++ include/ws2tcpip.h | 115 +-------------------------------------- 3 files changed, 153 insertions(+), 114 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=76fdd19476e809012cb5b…
1
0
0
0
Alexandre Julliard : winecrt0: Don' t bother passing the environment to the _init function.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 2ef9411434d9865ea703b322e30265ee7b196207 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2ef9411434d9865ea703b322e…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Mar 31 16:06:11 2009 +0200 winecrt0: Don't bother passing the environment to the _init function. We'd have to use the Windows environment anyway, not the Unix one. --- dlls/winecrt0/dll_entry.c | 2 +- dlls/winecrt0/drv_entry.c | 2 +- dlls/winecrt0/exe_entry.c | 2 +- dlls/winecrt0/exe_wentry.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/winecrt0/dll_entry.c b/dlls/winecrt0/dll_entry.c index c739ea2..9bbe8c4 100644 --- a/dlls/winecrt0/dll_entry.c +++ b/dlls/winecrt0/dll_entry.c @@ -34,7 +34,7 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason, if (reason == DLL_PROCESS_ATTACH && __wine_spec_init_state != CONSTRUCTORS_DONE) { call_fini = TRUE; - _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); + _init( __wine_main_argc, __wine_main_argv, NULL ); } ret = DllMain( inst, reason, reserved ); diff --git a/dlls/winecrt0/drv_entry.c b/dlls/winecrt0/drv_entry.c index a55f81d..32a87ee 100644 --- a/dlls/winecrt0/drv_entry.c +++ b/dlls/winecrt0/drv_entry.c @@ -31,7 +31,7 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob { BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); - if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); + if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL ); return DriverEntry( obj, path ); /* there is no detach routine so we can't call destructors */ } diff --git a/dlls/winecrt0/exe_entry.c b/dlls/winecrt0/exe_entry.c index 4722da3..4165651 100644 --- a/dlls/winecrt0/exe_entry.c +++ b/dlls/winecrt0/exe_entry.c @@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb ) BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); DWORD ret; - if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); + if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL ); ret = main( __wine_main_argc, __wine_main_argv ); if (needs_init) _fini(); ExitProcess( ret ); diff --git a/dlls/winecrt0/exe_wentry.c b/dlls/winecrt0/exe_wentry.c index b267c2f..11cff89 100644 --- a/dlls/winecrt0/exe_wentry.c +++ b/dlls/winecrt0/exe_wentry.c @@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb ) BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); DWORD ret; - if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); + if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL ); ret = wmain( __wine_main_argc, __wine_main_wargv ); if (needs_init) _fini(); ExitProcess( ret );
1
0
0
0
Huw Davies : ole32/tests: Add some tests for stream data.
by Alexandre Julliard
31 Mar '09
31 Mar '09
Module: wine Branch: master Commit: 61fa9bb06148ec5e256b676323499b45cf901920 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=61fa9bb06148ec5e256b67632…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Mar 31 12:07:14 2009 +0100 ole32/tests: Add some tests for stream data. --- dlls/ole32/tests/clipboard.c | 75 +++++++++++++++++++++++++++++++++++------ 1 files changed, 64 insertions(+), 11 deletions(-) diff --git a/dlls/ole32/tests/clipboard.c b/dlls/ole32/tests/clipboard.c index f0296ac..1918b2c 100644 --- a/dlls/ole32/tests/clipboard.c +++ b/dlls/ole32/tests/clipboard.c @@ -21,6 +21,7 @@ #define COBJMACROS #include <stdarg.h> +#include <stdio.h> #include "windef.h" #include "winbase.h" @@ -37,6 +38,15 @@ (fe).lindex=-1;\ }; +static inline char *dump_fmtetc(FORMATETC *fmt) +{ + static char buf[100]; + + snprintf(buf, sizeof(buf), "cf %04x ptd %p aspect %x lindex %d tymed %x", + fmt->cfFormat, fmt->ptd, fmt->dwAspect, fmt->lindex, fmt->tymed); + return buf; +} + typedef struct DataObjectImpl { const IDataObjectVtbl *lpVtbl; LONG ref; @@ -61,9 +71,10 @@ typedef struct EnumFormatImpl { static BOOL expect_DataObjectImpl_QueryGetData = TRUE; static ULONG DataObjectImpl_GetData_calls = 0; +static ULONG DataObjectImpl_GetDataHere_calls = 0; static ULONG DataObjectImpl_EnumFormatEtc_calls = 0; -static UINT cf_stream, cf_storage, cf_another, cf_onemore; +static UINT cf_stream, cf_storage, cf_global, cf_another, cf_onemore; static HRESULT EnumFormatImpl_Create(FORMATETC *fmtetc, UINT size, LPENUMFORMATETC *lplpformatetc); @@ -216,6 +227,8 @@ static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pfor UINT i; BOOL foundFormat = FALSE; + trace("getdata: %s\n", dump_fmtetc(pformatetc)); + DataObjectImpl_GetData_calls++; if(pformatetc->lindex != -1) @@ -231,7 +244,7 @@ static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pfor pmedium->pUnkForRelease = (LPUNKNOWN)iface; IUnknown_AddRef(pmedium->pUnkForRelease); - if(pformatetc->cfFormat == CF_TEXT) + if(pformatetc->cfFormat == CF_TEXT || pformatetc->cfFormat == cf_global) U(*pmedium).hGlobal = This->text; else if(pformatetc->cfFormat == cf_stream) U(*pmedium).pstm = This->stm; @@ -247,7 +260,9 @@ static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pfor static HRESULT WINAPI DataObjectImpl_GetDataHere(IDataObject* iface, FORMATETC *pformatetc, STGMEDIUM *pmedium) { - ok(0, "unexpected call\n"); + trace("getdatahere: %s\n", dump_fmtetc(pformatetc)); + DataObjectImpl_GetDataHere_calls++; + return E_NOTIMPL; } @@ -257,6 +272,7 @@ static HRESULT WINAPI DataObjectImpl_QueryGetData(IDataObject* iface, FORMATETC UINT i; BOOL foundFormat = FALSE; + trace("querygetdata: %s\n", dump_fmtetc(pformatetc)); if (!expect_DataObjectImpl_QueryGetData) ok(0, "unexpected call to DataObjectImpl_QueryGetData\n"); @@ -357,11 +373,12 @@ static HRESULT DataObjectImpl_CreateText(LPCSTR text, LPDATAOBJECT *lplpdataobj) return S_OK; } +const char *cmpl_stm_data = "complex stream"; +const char *cmpl_text_data = "complex text"; + static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj) { DataObjectImpl *obj; - const char *stm_data = "complex stream"; - const char *text_data = "complex text"; ILockBytes *lbs; static const WCHAR devname[] = {'m','y','d','e','v',0}; DEVMODEW dm; @@ -369,17 +386,17 @@ static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj) obj = HeapAlloc(GetProcessHeap(), 0, sizeof(DataObjectImpl)); obj->lpVtbl = &VT_DataObjectImpl; obj->ref = 1; - obj->text = GlobalAlloc(GMEM_MOVEABLE, strlen(text_data) + 1); - strcpy(GlobalLock(obj->text), text_data); + obj->text = GlobalAlloc(GMEM_MOVEABLE, strlen(cmpl_text_data) + 1); + strcpy(GlobalLock(obj->text), cmpl_text_data); GlobalUnlock(obj->text); CreateStreamOnHGlobal(NULL, TRUE, &obj->stm); - IStream_Write(obj->stm, stm_data, strlen(stm_data), NULL); + IStream_Write(obj->stm, cmpl_stm_data, strlen(cmpl_stm_data), NULL); CreateILockBytesOnHGlobal(NULL, TRUE, &lbs); StgCreateDocfileOnILockBytes(lbs, STGM_CREATE|STGM_SHARE_EXCLUSIVE|STGM_READWRITE, 0, &obj->stg); ILockBytes_Release(lbs); - obj->fmtetc_cnt = 5; + obj->fmtetc_cnt = 8; /* zeroing here since FORMATETC has a hole in it, and it's confusing to have this uninitialised. */ obj->fmtetc = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, obj->fmtetc_cnt*sizeof(FORMATETC)); InitFormatEtc(obj->fmtetc[0], CF_TEXT, TYMED_HGLOBAL); @@ -399,8 +416,11 @@ static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj) lstrcpyW((WCHAR*)obj->fmtetc[3].ptd->tdData, devname); memcpy(obj->fmtetc[3].ptd->tdData + sizeof(devname), &dm, dm.dmSize + dm.dmDriverExtra); - InitFormatEtc(obj->fmtetc[4], cf_stream, 0xfffff); - obj->fmtetc[4].dwAspect = DVASPECT_ICON; + InitFormatEtc(obj->fmtetc[4], cf_global, TYMED_HGLOBAL); + InitFormatEtc(obj->fmtetc[5], cf_another, TYMED_HGLOBAL); + InitFormatEtc(obj->fmtetc[6], cf_another, 0xfffff); + InitFormatEtc(obj->fmtetc[7], cf_another, 0xfffff); + obj->fmtetc[7].dwAspect = DVASPECT_ICON; *lplpdataobj = (LPDATAOBJECT)obj; return S_OK; @@ -533,6 +553,7 @@ static void test_enum_fmtetc(IDataObject *src) ok(src != NULL, "shouldn't be here\n"); hr = IEnumFORMATETC_Next(src_enum, 1, &src_fmt, NULL); ok(hr == S_OK, "%d: got %08x\n", count, hr); + trace("%d: cf %04x aspect %x tymed %x\n", count, fmt.cfFormat, fmt.dwAspect, fmt.tymed); ok(fmt.cfFormat == src_fmt.cfFormat, "%d: %04x %04x\n", count, fmt.cfFormat, src_fmt.cfFormat); ok(fmt.dwAspect == src_fmt.dwAspect, "%d: %08x %08x\n", count, fmt.dwAspect, src_fmt.dwAspect); ok(fmt.lindex == src_fmt.lindex, "%d: %08x %08x\n", count, fmt.lindex, src_fmt.lindex); @@ -673,6 +694,36 @@ static void test_cf_dataobject(IDataObject *data) } } } + else if(cf == cf_stream) + { + HGLOBAL h; + void *ptr; + DWORD size; + + DataObjectImpl_GetDataHere_calls = 0; + h = GetClipboardData(cf); + ok(DataObjectImpl_GetDataHere_calls == 1, "got %d\n", DataObjectImpl_GetDataHere_calls); + ptr = GlobalLock(h); + size = GlobalSize(h); + ok(size == strlen(cmpl_stm_data), "expected %d got %d\n", strlen(cmpl_stm_data), size); + ok(!memcmp(ptr, cmpl_stm_data, size), "mismatch\n"); + GlobalUnlock(h); + } + else if(cf == cf_global) + { + HGLOBAL h; + void *ptr; + DWORD size; + + DataObjectImpl_GetDataHere_calls = 0; + h = GetClipboardData(cf); + ok(DataObjectImpl_GetDataHere_calls == 0, "got %d\n", DataObjectImpl_GetDataHere_calls); + ptr = GlobalLock(h); + size = GlobalSize(h); + ok(size == strlen(cmpl_text_data) + 1, "expected %d got %d\n", strlen(cmpl_text_data) + 1, size); + ok(!memcmp(ptr, cmpl_text_data, size), "mismatch\n"); + GlobalUnlock(h); + } } while(cf); CloseClipboard(); ok(found_dataobject, "didn't find cf_dataobject\n"); @@ -688,6 +739,7 @@ static void test_set_clipboard(void) cf_stream = RegisterClipboardFormatA("stream format"); cf_storage = RegisterClipboardFormatA("storage format"); + cf_global = RegisterClipboardFormatA("global format"); cf_another = RegisterClipboardFormatA("another format"); cf_onemore = RegisterClipboardFormatA("one more format"); @@ -779,6 +831,7 @@ static void test_set_clipboard(void) ok(h == NULL, "got %p\n", h); CloseClipboard(); + trace("setting complex\n"); hr = OleSetClipboard(data_cmpl); ok(hr == S_OK, "failed to set clipboard to complex data, hr = 0x%08x\n", hr); test_cf_dataobject(data_cmpl);
1
0
0
0
← Newer
1
2
3
4
...
84
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
Results per page:
10
25
50
100
200