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
Roderick Colenbrander : wined3d: Raster caps fix.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: 6ded5542b2fed9880d730d21db96ee9ed796b0f8 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6ded5542b2fed9880d730d2…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Fri Aug 4 22:42:57 2006 +0200 wined3d: Raster caps fix. --- dlls/wined3d/directx.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 375906b..f621d86 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1726,7 +1726,10 @@ #endif WINED3DPRASTERCAPS_FOGRANGE | WINED3DPRASTERCAPS_STIPPLE | WINED3DPRASTERCAPS_SUBPIXEL | - WINED3DPRASTERCAPS_ZTEST; + WINED3DPRASTERCAPS_ZTEST | + WINED3DPRASTERCAPS_SCISSORTEST | + WINED3DPRASTERCAPS_SLOPESCALEDEPTHBIAS | + WINED3DPRASTERCAPS_DEPTHBIAS; if (GL_SUPPORT(EXT_TEXTURE_FILTER_ANISOTROPIC)) { *pCaps->RasterCaps |= WINED3DPRASTERCAPS_ANISOTROPY |
1
0
0
0
Roderick Colenbrander : wined3d: Primitive misc caps fix.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: 6fedd6c041bd53b68a785f1e0b0f5e02351679c5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6fedd6c041bd53b68a785f1…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Fri Aug 4 22:37:27 2006 +0200 wined3d: Primitive misc caps fix. --- dlls/wined3d/directx.c | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index fc4cd26..375906b 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1692,13 +1692,30 @@ static HRESULT WINAPI IWineD3DImpl_GetDe WINED3DDEVCAPS_DRAWPRIMITIVES2 | WINED3DDEVCAPS_DRAWPRIMITIVES2EX; - *pCaps->PrimitiveMiscCaps = D3DPMISCCAPS_CULLCCW | + *pCaps->PrimitiveMiscCaps = D3DPMISCCAPS_CULLNONE | + D3DPMISCCAPS_CULLCCW | D3DPMISCCAPS_CULLCW | D3DPMISCCAPS_COLORWRITEENABLE | D3DPMISCCAPS_CLIPTLVERTS | D3DPMISCCAPS_CLIPPLANESCALEDPOINTS | - D3DPMISCCAPS_MASKZ; - /*NOT: D3DPMISCCAPS_TSSARGTEMP*/ + D3DPMISCCAPS_MASKZ | + D3DPMISCCAPS_BLENDOP; + /* TODO: + D3DPMISCCAPS_NULLREFERENCE + D3DPMISCCAPS_INDEPENDENTWRITEMASKS + D3DPMISCCAPS_FOGANDSPECULARALPHA + D3DPMISCCAPS_SEPARATEALPHABLEND + D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS + D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING + D3DPMISCCAPS_FOGVERTEXCLAMPED */ + +/* The caps below can be supported but aren't handled yet in utils.c 'd3dta_to_combiner_input', disable them until support is fixed */ +#if 0 + if (GL_SUPPORT(NV_REGISTER_COMBINERS)) + *pCaps->PrimitiveMiscCaps |= D3DPMISCCAPS_TSSARGTEMP; + if (GL_SUPPORT(NV_REGISTER_COMBINERS2)) + *pCaps->PrimitiveMiscCaps |= D3DPMISCCAPS_PERSTAGECONSTANT; +#endif *pCaps->RasterCaps = WINED3DPRASTERCAPS_DITHER | WINED3DPRASTERCAPS_PAT |
1
0
0
0
Kevin Koltzau : setupapi: Create an empty list when getting device interface classes.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: 93f5e0a7fd9c9f741de4a1faaa8a90ed88a36d60 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=93f5e0a7fd9c9f741de4a1f…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Fri Aug 4 16:31:59 2006 -0400 setupapi: Create an empty list when getting device interface classes. --- dlls/setupapi/devinst.c | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 50d17e5..30ed085 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -1013,7 +1013,18 @@ HDEVINFO WINAPI SetupDiGetClassDevsW( TRACE("%s %s %p 0x%08lx\n", debugstr_guid(class), debugstr_w(enumstr), parent, flags); - if (enumstr) + if(flags & DIGCF_DEVICEINTERFACE) + { + if(!class) + SetLastError(ERROR_INVALID_PARAMETER); + else + { + /* WinXP always succeeds, returns empty list for unknown classes */ + FIXME(": returning empty list\n"); + ret = SetupDiCreateDeviceInfoList(class, parent); + } + } + else if (enumstr) FIXME(": unimplemented for enumerator strings (%s)\n", debugstr_w(enumstr)); else if (flags & DIGCF_ALLCLASSES) @@ -1045,7 +1056,7 @@ HDEVINFO WINAPI SetupDiGetClassDevsExW( * SetupDiEnumDeviceInterfaces (SETUPAPI.@) */ BOOL WINAPI SetupDiEnumDeviceInterfaces( - HDEVINFO DeviceInfoSet, + HDEVINFO devinfo, PSP_DEVINFO_DATA DeviceInfoData, CONST GUID * InterfaceClassGuid, DWORD MemberIndex, @@ -1053,10 +1064,19 @@ BOOL WINAPI SetupDiEnumDeviceInterfaces( { BOOL ret = FALSE; - FIXME("%p, %p, %s, 0x%08lx, %p\n", DeviceInfoSet, DeviceInfoData, + FIXME("%p, %p, %s, 0x%08lx, %p\n", devinfo, DeviceInfoData, debugstr_guid(InterfaceClassGuid), MemberIndex, DeviceInterfaceData); - SetLastError(ERROR_INVALID_HANDLE); + if (devinfo && devinfo != (HDEVINFO)INVALID_HANDLE_VALUE) + { + struct DeviceInfoSet *list = (struct DeviceInfoSet *)devinfo; + if (list->magic == SETUP_DEVICE_INFO_SET_MAGIC) + SetLastError(ERROR_NO_MORE_ITEMS); + else + SetLastError(ERROR_INVALID_HANDLE); + } + else + SetLastError(ERROR_INVALID_HANDLE); return ret; }
1
0
0
0
Matt Finnicum : riched20: Implement EM_SETPASSWORDCHAR and EM_GETPASSWORDCHAR.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: 2b92bf78d1939cfb785b6911dbb2b8ab1843a527 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2b92bf78d1939cfb785b691…
Author: Matt Finnicum <mattfinn(a)gmail.com> Date: Fri Aug 4 15:47:44 2006 -0400 riched20: Implement EM_SETPASSWORDCHAR and EM_GETPASSWORDCHAR. --- dlls/riched20/editor.c | 28 +++++++++++++++++++++----- dlls/riched20/editor.h | 2 ++ dlls/riched20/editstr.h | 1 + dlls/riched20/paint.c | 20 +++++++++++++++--- dlls/riched20/run.c | 46 ++++++++++++++++++++++++++++++++++++------ dlls/riched20/string.c | 26 ++++++++++++++++++++++++ dlls/riched20/tests/editor.c | 25 +++++++++++++++++++++++ 7 files changed, 132 insertions(+), 16 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=2b92bf78d1939cfb785…
1
0
0
0
Dan Hipschman : widl: Replace strdup, malloc and realloc with xstrdup, xmalloc and xrealloc.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: 4961379d7408cc6f080106b0c01e85eb014da17d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4961379d7408cc6f080106b…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Fri Aug 4 11:06:54 2006 -0700 widl: Replace strdup, malloc and realloc with xstrdup, xmalloc and xrealloc. --- tools/widl/widl.c | 12 ++++++------ tools/widl/write_msft.c | 19 ++----------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/tools/widl/widl.c b/tools/widl/widl.c index 152d35f..aac1d5e 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -189,7 +189,7 @@ #endif do_client = 1; break; case 'C': - client_name = strdup(optarg); + client_name = xstrdup(optarg); break; case 'd': debuglevel = strtol(optarg, NULL, 0); @@ -206,7 +206,7 @@ #endif do_header = 1; break; case 'H': - header_name = strdup(optarg); + header_name = xstrdup(optarg); break; case 'I': wpp_add_include_path(optarg); @@ -219,28 +219,28 @@ #endif do_proxies = 1; break; case 'P': - proxy_name = strdup(optarg); + proxy_name = xstrdup(optarg); break; case 's': do_everything = 0; do_server = 1; break; case 'S': - server_name = strdup(optarg); + server_name = xstrdup(optarg); break; case 't': do_everything = 0; do_typelib = 1; break; case 'T': - typelib_name = strdup(optarg); + typelib_name = xstrdup(optarg); break; case 'u': do_everything = 0; do_idfile = 1; break; case 'U': - idfile_name = strdup(optarg); + idfile_name = xstrdup(optarg); break; case 'V': printf(version_string); diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c index 8148a93..cac1f7f 100644 --- a/tools/widl/write_msft.c +++ b/tools/widl/write_msft.c @@ -362,7 +362,6 @@ static int ctl2_encode_string( * RETURNS * * Success: The offset within the segment of the new data area. - * Failure: -1 (this is invariably an out of memory condition). * * BUGS * @@ -389,8 +388,7 @@ static int ctl2_alloc_segment( char *block; block_size = typelib->typelib_segment_block_length[segment]; - block = realloc(typelib->typelib_segment_data[segment], block_size << 1); - if (!block) return -1; + block = xrealloc(typelib->typelib_segment_data[segment], block_size << 1); if (segment == MSFT_SEG_TYPEINFO) { /* TypeInfos have a direct pointer to their memory space, so we have to fix them up. */ @@ -430,7 +428,6 @@ static int ctl2_alloc_typeinfo( MSFT_TypeInfoBase *typeinfo; offset = ctl2_alloc_segment(typelib, MSFT_SEG_TYPEINFO, sizeof(MSFT_TypeInfoBase), 0); - if (offset == -1) return -1; typelib->typelib_typeinfo_offsets[typelib->typelib_header.nrtypeinfos++] = offset; @@ -475,7 +472,6 @@ static int ctl2_alloc_typeinfo( * RETURNS * * Success: The offset of the new GUID. - * Failure: -1 (this is invariably an out of memory condition). */ static int ctl2_alloc_guid( msft_typelib_t *typelib, /* [I] The type library to allocate in. */ @@ -491,7 +487,6 @@ static int ctl2_alloc_guid( if (offset != -1) return offset; offset = ctl2_alloc_segment(typelib, MSFT_SEG_GUID, sizeof(MSFT_GuidEntry), 0); - if (offset == -1) return -1; guid_space = (void *)(typelib->typelib_segment_data[MSFT_SEG_GUID] + offset); *guid_space = *guid; @@ -528,7 +523,6 @@ static int ctl2_alloc_name( if (offset != -1) return offset; offset = ctl2_alloc_segment(typelib, MSFT_SEG_NAME, length + 8, 0); - if (offset == -1) return -1; name_space = (void *)(typelib->typelib_segment_data[MSFT_SEG_NAME] + offset); name_space->hreftype = -1; @@ -574,7 +568,6 @@ static int ctl2_alloc_string( } offset = ctl2_alloc_segment(typelib, MSFT_SEG_STRING, length, 0); - if (offset == -1) return -1; string_space = typelib->typelib_segment_data[MSFT_SEG_STRING] + offset; memcpy(string_space, encoded_string, length); @@ -611,7 +604,6 @@ static int alloc_msft_importinfo( impinfo->flags |= typelib->typelib_header.nimpinfos++; offset = ctl2_alloc_segment(typelib, MSFT_SEG_IMPORTINFO, sizeof(MSFT_ImpInfo), 0); - if (offset == -1) return -1; impinfo_space = (void *)(typelib->typelib_segment_data[MSFT_SEG_IMPORTINFO] + offset); *impinfo_space = *impinfo; @@ -653,7 +645,6 @@ static int alloc_importfile( } offset = ctl2_alloc_segment(typelib, MSFT_SEG_IMPORTFILES, length + 0xc, 0); - if (offset == -1) return -1; importfile = (MSFT_ImpFile *)&typelib->typelib_segment_data[MSFT_SEG_IMPORTFILES][offset]; importfile->guid = guidoffset; @@ -1233,11 +1224,9 @@ static HRESULT set_custdata(msft_typelib guidentry.next_hash = -1; guidoffset = ctl2_alloc_guid(typelib, &guidentry); - if (guidoffset == -1) return E_OUTOFMEMORY; write_value(typelib, &data_out, vt, value); custoffset = ctl2_alloc_segment(typelib, MSFT_SEG_CUSTDATAGUID, 12, 0); - if (custoffset == -1) return E_OUTOFMEMORY; custdata = (int *)&typelib->typelib_segment_data[MSFT_SEG_CUSTDATAGUID][custoffset]; custdata[0] = guidoffset; @@ -2262,9 +2251,6 @@ static void set_guid(msft_typelib_t *typ } offset = ctl2_alloc_guid(typelib, &guidentry); - - if (offset == -1) return; - typelib->typelib_header.posguid = offset; return; @@ -2527,8 +2513,7 @@ int create_msft_typelib(typelib_t *typel GUID midl_time_guid = {0xde77ba63,0x517c,0x11d1,{0xa2,0xda,0x00,0x00,0xf8,0x77,0x3c,0xe9}}; GUID midl_version_guid = {0xde77ba64,0x517c,0x11d1,{0xa2,0xda,0x00,0x00,0xf8,0x77,0x3c,0xe9}}; - msft = malloc(sizeof(*msft)); - if (!msft) return 0; + msft = xmalloc(sizeof(*msft)); memset(msft, 0, sizeof(*msft)); msft->typelib = typelib;
1
0
0
0
Alexandre Julliard : configure: Only link against libresolv where necessary .
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: eebb1112214a68762d2e9d3663e95fef51c4b6dc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=eebb1112214a68762d2e9d3…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Aug 4 23:17:56 2006 +0200 configure: Only link against libresolv where necessary. --- configure | 87 --------------------------------------------- configure.ac | 2 - dlls/iphlpapi/Makefile.in | 1 + 3 files changed, 1 insertions(+), 89 deletions(-) diff --git a/configure b/configure index 448115d..4ad1108 100755 --- a/configure +++ b/configure @@ -7861,93 +7861,6 @@ _ACEOF fi - -{ echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 -echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; } -if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lresolv $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char res_9_init (); -int -main () -{ -return res_9_init (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_resolv_res_9_init=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_resolv_res_9_init=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 -echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; } -if test $ac_cv_lib_resolv_res_9_init = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRESOLV 1 -_ACEOF - - LIBS="-lresolv $LIBS" - -fi - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then diff --git a/configure.ac b/configure.ac index f375c59..5782654 100644 --- a/configure.ac +++ b/configure.ac @@ -146,8 +146,6 @@ dnl Check for -lxpg4 for FreeBSD AC_CHECK_LIB(xpg4,_xpg4_setrunelocale) dnl Check for -lpoll for Mac OS X/Darwin AC_CHECK_LIB(poll,poll) -dnl Check for -lresolv for Mac OS X/Darwin -AC_CHECK_LIB(resolv,res_9_init) dnl Check for -lpthread AC_CHECK_LIB(pthread,pthread_create,AC_SUBST(LIBPTHREAD,"-lpthread")) diff --git a/dlls/iphlpapi/Makefile.in b/dlls/iphlpapi/Makefile.in index 713f1f1..163593f 100644 --- a/dlls/iphlpapi/Makefile.in +++ b/dlls/iphlpapi/Makefile.in @@ -5,6 +5,7 @@ VPATH = @srcdir@ MODULE = iphlpapi.dll IMPORTLIB = libiphlpapi.$(IMPLIBEXT) IMPORTS = advapi32 kernel32 +EXTRALIBS = @RESOLVLIBS@ C_SRCS = \ ifenum.c \
1
0
0
0
Alexandre Julliard : server: Added support for kqueue() as an alternative to poll() on FreeBSD.
by Alexandre Julliard
05 Aug '06
05 Aug '06
Module: wine Branch: refs/heads/master Commit: c82789264b89e40c8bad49c6866d655dc1f44754 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c82789264b89e40c8bad49c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Aug 4 22:11:00 2006 +0200 server: Added support for kqueue() as an alternative to poll() on FreeBSD. --- configure | 54 ++++++++++------------- configure.ac | 2 + include/config.h.in | 6 +++ server/fd.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 152 insertions(+), 32 deletions(-) diff --git a/configure b/configure index 90aa97e..448115d 100755 --- a/configure +++ b/configure @@ -4118,12 +4118,12 @@ else X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . - case `(uname -sr) 2>/dev/null` in - "SunOS 5"*) - { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 + { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } - ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" - cat >conftest.$ac_ext <<_ACEOF + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -4172,23 +4172,15 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_R_nospace=yes + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_R_nospace=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test $ac_R_nospace = yes; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - X_LIBS="$X_LIBS -R$x_libraries" - else LIBS="$ac_xsave_LIBS -R $x_libraries" - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -4237,27 +4229,25 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_R_space=yes + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_R_space=no + { echo "$as_me:$LINENO: result: neither works" >&5 +echo "${ECHO_T}neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - if test $ac_R_space = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - X_LIBS="$X_LIBS -R $x_libraries" - else - { echo "$as_me:$LINENO: result: neither works" >&5 -echo "${ECHO_T}neither works" >&6; } - fi - fi - LIBS=$ac_xsave_LIBS - esac +fi + +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_c_werror_flag=$ac_xsave_c_werror_flag + LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. @@ -8436,6 +8426,7 @@ done + for ac_header in \ AudioUnit/AudioUnit.h \ CoreAudio/CoreAudio.h \ @@ -8504,6 +8495,7 @@ for ac_header in \ sys/elf32.h \ sys/epoll.h \ sys/errno.h \ + sys/event.h \ sys/exec_elf.h \ sys/filio.h \ sys/ioctl.h \ @@ -19349,6 +19341,7 @@ fi + for ac_func in \ _lwp_create \ _lwp_self \ @@ -19385,6 +19378,7 @@ for ac_func in \ gettimeofday \ getuid \ inet_network \ + kqueue \ lstat \ memmove \ mmap \ diff --git a/configure.ac b/configure.ac index fa74bee..f375c59 100644 --- a/configure.ac +++ b/configure.ac @@ -227,6 +227,7 @@ AC_CHECK_HEADERS(\ sys/elf32.h \ sys/epoll.h \ sys/errno.h \ + sys/event.h \ sys/exec_elf.h \ sys/filio.h \ sys/ioctl.h \ @@ -1289,6 +1290,7 @@ AC_CHECK_FUNCS(\ gettimeofday \ getuid \ inet_network \ + kqueue \ lstat \ memmove \ mmap \ diff --git a/include/config.h.in b/include/config.h.in index 870e96c..3d1d4b5 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -263,6 +263,9 @@ #undef HAVE_JACK_JACK_H /* Define to 1 if you have the <jpeglib.h> header file. */ #undef HAVE_JPEGLIB_H +/* Define to 1 if you have the `kqueue' function. */ +#undef HAVE_KQUEUE + /* Define to 1 if you have the <lber.h> header file. */ #undef HAVE_LBER_H @@ -725,6 +728,9 @@ #undef HAVE_SYS_EPOLL_H /* Define to 1 if you have the <sys/errno.h> header file. */ #undef HAVE_SYS_ERRNO_H +/* Define to 1 if you have the <sys/event.h> header file. */ +#undef HAVE_SYS_EVENT_H + /* Define to 1 if you have the <sys/exec_elf.h> header file. */ #undef HAVE_SYS_EXEC_ELF_H diff --git a/server/fd.c b/server/fd.c index 02aa88d..b7281a4 100644 --- a/server/fd.c +++ b/server/fd.c @@ -37,6 +37,11 @@ #endif #ifdef HAVE_SYS_POLL_H #include <sys/poll.h> #endif +#ifdef HAVE_SYS_EVENT_H +#include <sys/event.h> +#undef LIST_INIT +#undef LIST_ENTRY +#endif #ifdef HAVE_STDINT_H #include <stdint.h> #endif @@ -358,7 +363,7 @@ static int get_next_timeout(void); #ifdef USE_EPOLL -static int epoll_fd; +static int epoll_fd = -1; static inline void init_epoll(void) { @@ -452,7 +457,120 @@ static inline void main_loop_epoll(void) } } -#else /* USE_EPOLL */ +#elif defined(HAVE_KQUEUE) + +static int kqueue_fd = -1; + +static inline void init_epoll(void) +{ +#ifndef __APPLE__ /* kqueue support is broken in the MacOS kernel so we can't use it */ + kqueue_fd = kqueue(); +#endif +} + +static inline void set_fd_epoll_events( struct fd *fd, int user, int events ) +{ + struct kevent ev[2]; + + if (kqueue_fd == -1) return; + + EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, (void *)user ); + EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 0, NOTE_LOWAT, 1, (void *)user ); + + if (events == -1) /* stop waiting on this fd completely */ + { + if (pollfd[user].fd == -1) return; /* already removed */ + ev[0].flags |= EV_DELETE; + ev[1].flags |= EV_DELETE; + } + else if (pollfd[user].fd == -1) + { + if (pollfd[user].events) return; /* stopped waiting on it, don't restart */ + ev[0].flags |= EV_ADD | ((events & POLLIN) ? EV_ENABLE : EV_DISABLE); + ev[1].flags |= EV_ADD | ((events & POLLOUT) ? EV_ENABLE : EV_DISABLE); + } + else + { + if (pollfd[user].events == events) return; /* nothing to do */ + ev[0].flags |= (events & POLLIN) ? EV_ENABLE : EV_DISABLE; + ev[1].flags |= (events & POLLOUT) ? EV_ENABLE : EV_DISABLE; + } + + if (kevent( kqueue_fd, ev, 2, NULL, 0, NULL ) == -1) + { + if (errno == ENOMEM) /* not enough memory, give up on kqueue */ + { + close( kqueue_fd ); + kqueue_fd = -1; + } + else perror( "kevent" ); /* should not happen */ + } +} + +static inline void remove_epoll_user( struct fd *fd, int user ) +{ + if (kqueue_fd == -1) return; + + if (pollfd[user].fd != -1) + { + struct kevent ev[2]; + + EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, EV_DELETE, 0, 0, 0 ); + EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0 ); + kevent( kqueue_fd, ev, 2, NULL, 0, NULL ); + } +} + +static inline void main_loop_epoll(void) +{ + int i, ret, timeout; + struct kevent events[128]; + + if (kqueue_fd == -1) return; + + while (active_users) + { + timeout = get_next_timeout(); + + if (!active_users) break; /* last user removed by a timeout */ + if (kqueue_fd == -1) break; /* an error occurred with kqueue */ + + if (timeout != -1) + { + struct timespec ts; + + ts.tv_sec = timeout / 1000; + ts.tv_nsec = (timeout % 1000) * 1000000; + ret = kevent( kqueue_fd, NULL, 0, events, sizeof(events)/sizeof(events[0]), &ts ); + } + else ret = kevent( kqueue_fd, NULL, 0, events, sizeof(events)/sizeof(events[0]), NULL ); + + /* put the events into the pollfd array first, like poll does */ + for (i = 0; i < ret; i++) + { + long user = (long)events[i].udata; + pollfd[user].revents = 0; + } + for (i = 0; i < ret; i++) + { + long user = (long)events[i].udata; + if (events[i].filter == EVFILT_READ) pollfd[user].revents |= POLLIN; + else if (events[i].filter == EVFILT_WRITE) pollfd[user].revents |= POLLOUT; + if (events[i].flags & EV_EOF) pollfd[user].revents |= POLLHUP; + if (events[i].flags & EV_ERROR) pollfd[user].revents |= POLLERR; + } + + /* read events from the pollfd array, as set_fd_events may modify them */ + for (i = 0; i < ret; i++) + { + long user = (long)events[i].udata; + if (pollfd[user].revents) fd_poll_event( poll_users[user], pollfd[user].revents ); + pollfd[user].revents = 0; + } + } +} + +#else /* HAVE_KQUEUE */ static inline void init_epoll(void) { } static inline void set_fd_epoll_events( struct fd *fd, int user, int events ) { }
1
0
0
0
Roderick Colenbrander : wined3d: Basetexture anisotropic fix.
by Alexandre Julliard
04 Aug '06
04 Aug '06
Module: wine Branch: refs/heads/master Commit: 9925b0561eb10eb2077e867037252f7772f436b8 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=9925b0561eb10eb2077e867…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Fri Aug 4 18:14:41 2006 +0200 wined3d: Basetexture anisotropic fix. --- dlls/wined3d/basetexture.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c index 58fb92d..9343416 100644 --- a/dlls/wined3d/basetexture.c +++ b/dlls/wined3d/basetexture.c @@ -430,8 +430,12 @@ void WINAPI IWineD3DBaseTextureImpl_Appl break; case WINED3DSAMP_MAXANISOTROPY: *state = samplerStates[textureObjectSamplerStates[i].state]; - glTexParameteri(textureDimensions, GL_TEXTURE_MAX_ANISOTROPY_EXT, *state); - checkGLcall("glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT ..."); + if (GL_SUPPORT(EXT_TEXTURE_FILTER_ANISOTROPIC)) { + glTexParameteri(textureDimensions, GL_TEXTURE_MAX_ANISOTROPY_EXT, *state); + checkGLcall("glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT ..."); + } else { + WARN("Unsupported in local OpenGL implementation: glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT\n"); + } break; case WINED3DFUNC_UNIMPLEMENTED: /* unimplemented */ TRACE("(%p) : stub\n", This);
1
0
0
0
Roderick Colenbrander : wined3d: Fix a number of badly reported caps.
by Alexandre Julliard
04 Aug '06
04 Aug '06
Module: wine Branch: refs/heads/master Commit: 95b047c2fe60d4680d5a75a0770c03cbaf9a1ad4 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=95b047c2fe60d4680d5a75a…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Fri Aug 4 19:14:16 2006 +0200 wined3d: Fix a number of badly reported caps. --- dlls/wined3d/directx.c | 43 +++++++++++++++++++++++++++++++++++++++---- 1 files changed, 39 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 1fa4a5e..fc4cd26 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1732,9 +1732,44 @@ static HRESULT WINAPI IWineD3DImpl_GetDe D3DPCMPCAPS_NEVER | D3DPCMPCAPS_NOTEQUAL; - *pCaps->SrcBlendCaps = 0xFFFFFFFF; /*FIXME: Tidy up later */ - *pCaps->DestBlendCaps = 0xFFFFFFFF; /*FIXME: Tidy up later */ - *pCaps->AlphaCmpCaps = 0xFFFFFFFF; /*FIXME: Tidy up later */ + *pCaps->SrcBlendCaps = D3DPBLENDCAPS_BLENDFACTOR | + D3DPBLENDCAPS_BOTHINVSRCALPHA | + D3DPBLENDCAPS_BOTHSRCALPHA | + D3DPBLENDCAPS_DESTALPHA | + D3DPBLENDCAPS_DESTCOLOR | + D3DPBLENDCAPS_INVDESTALPHA | + D3DPBLENDCAPS_INVDESTCOLOR | + D3DPBLENDCAPS_INVSRCALPHA | + D3DPBLENDCAPS_INVSRCCOLOR | + D3DPBLENDCAPS_ONE | + D3DPBLENDCAPS_SRCALPHA | + D3DPBLENDCAPS_SRCALPHASAT | + D3DPBLENDCAPS_SRCCOLOR | + D3DPBLENDCAPS_ZERO; + + *pCaps->DestBlendCaps = D3DPBLENDCAPS_BLENDFACTOR | + D3DPBLENDCAPS_BOTHINVSRCALPHA | + D3DPBLENDCAPS_BOTHSRCALPHA | + D3DPBLENDCAPS_DESTALPHA | + D3DPBLENDCAPS_DESTCOLOR | + D3DPBLENDCAPS_INVDESTALPHA | + D3DPBLENDCAPS_INVDESTCOLOR | + D3DPBLENDCAPS_INVSRCALPHA | + D3DPBLENDCAPS_INVSRCCOLOR | + D3DPBLENDCAPS_ONE | + D3DPBLENDCAPS_SRCALPHA | + D3DPBLENDCAPS_SRCALPHASAT | + D3DPBLENDCAPS_SRCCOLOR | + D3DPBLENDCAPS_ZERO; + + *pCaps->AlphaCmpCaps = D3DPCMPCAPS_ALWAYS | + D3DPCMPCAPS_EQUAL | + D3DPCMPCAPS_GREATER | + D3DPCMPCAPS_GREATEREQUAL | + D3DPCMPCAPS_LESS | + D3DPCMPCAPS_LESSEQUAL | + D3DPCMPCAPS_NEVER | + D3DPCMPCAPS_NOTEQUAL; *pCaps->ShadeCaps = WINED3DPSHADECAPS_SPECULARGOURAUDRGB | WINED3DPSHADECAPS_COLORGOURAUDRGB | @@ -1778,7 +1813,7 @@ static HRESULT WINAPI IWineD3DImpl_GetDe *pCaps->CubeTextureFilterCaps = 0; *pCaps->VolumeTextureFilterCaps = 0; - *pCaps->TextureAddressCaps = D3DPTADDRESSCAPS_BORDER | + *pCaps->TextureAddressCaps = D3DPTADDRESSCAPS_INDEPENDENTUV | D3DPTADDRESSCAPS_CLAMP | D3DPTADDRESSCAPS_WRAP;
1
0
0
0
Dan Hipschman : user: Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent.
by Alexandre Julliard
04 Aug '06
04 Aug '06
Module: wine Branch: refs/heads/master Commit: 74ece17c6bd141c5a13b3aec7522303fb50bc472 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=74ece17c6bd141c5a13b3ae…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Fri Aug 4 10:08:53 2006 -0700 user: Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent. --- dlls/user/tests/win.c | 2 +- dlls/user/win.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/user/tests/win.c b/dlls/user/tests/win.c index 9d37253..42c6ed5 100644 --- a/dlls/user/tests/win.c +++ b/dlls/user/tests/win.c @@ -140,7 +140,7 @@ static void test_parent_owner(void) SetLastError(0xdeadbeef); test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1", WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL ); - todo_wine ok( GetLastError() == ERROR_TLW_WITH_WSCHILD, "CreateWindowExA should call SetLastError\n" ); + ok( GetLastError() == ERROR_TLW_WITH_WSCHILD, "CreateWindowExA should call SetLastError\n" ); ok( !test, "WS_CHILD without parent created\n" ); /* desktop window */ diff --git a/dlls/user/win.c b/dlls/user/win.c index 592eeac..a4f2c26 100644 --- a/dlls/user/win.c +++ b/dlls/user/win.c @@ -995,6 +995,7 @@ static HWND WIN_CreateWindowEx( CREATEST if ((cs->style & (WS_CHILD|WS_POPUP)) == WS_CHILD) { WARN("No parent for child window\n" ); + SetLastError(ERROR_TLW_WITH_WSCHILD); return 0; /* WS_CHILD needs a parent, but WS_POPUP doesn't */ } if (classAtom != LOWORD(DESKTOP_CLASS_ATOM)) /* are we creating the desktop itself? */
1
0
0
0
← Newer
1
...
60
61
62
63
64
65
66
...
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