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
June 2012
----- 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
3 participants
827 discussions
Start a n
N
ew thread
Alexandre Julliard : mountmgr: Add a helper function for parsing UDisks media compatibility.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 2f86012373b1247235165f8ff16cafda97a97d48 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2f86012373b1247235165f8ff…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jun 13 17:36:55 2012 +0200 mountmgr: Add a helper function for parsing UDisks media compatibility. --- dlls/mountmgr.sys/dbus.c | 43 +++++++++++++++++++++++++++---------------- 1 files changed, 27 insertions(+), 16 deletions(-) diff --git a/dlls/mountmgr.sys/dbus.c b/dlls/mountmgr.sys/dbus.c index 608efd0..3571bf4 100644 --- a/dlls/mountmgr.sys/dbus.c +++ b/dlls/mountmgr.sys/dbus.c @@ -140,6 +140,11 @@ static LONG WINAPI assert_fault(EXCEPTION_POINTERS *eptr) return EXCEPTION_CONTINUE_SEARCH; } +static inline int starts_with( const char *str, const char *prefix ) +{ + return !strncmp( str, prefix, strlen(prefix) ); +} + static GUID *parse_uuid( GUID *guid, const char *str ) { /* standard uuid format */ @@ -199,6 +204,27 @@ static const char *udisks_next_dict_entry( DBusMessageIter *iter, DBusMessageIte return name; } +static enum device_type udisks_parse_media_compatibility( DBusMessageIter *iter ) +{ + DBusMessageIter media; + enum device_type drive_type = DEVICE_UNKNOWN; + + p_dbus_message_iter_recurse( iter, &media ); + while (p_dbus_message_iter_get_arg_type( &media ) == DBUS_TYPE_STRING) + { + const char *media_type; + p_dbus_message_iter_get_basic( &media, &media_type ); + if (starts_with( media_type, "optical_dvd" )) + drive_type = DEVICE_DVD; + if (starts_with( media_type, "floppy" )) + drive_type = DEVICE_FLOPPY; + else if (starts_with( media_type, "optical_" ) && drive_type == DEVICE_UNKNOWN) + drive_type = DEVICE_CDROM; + p_dbus_message_iter_next( &media ); + } + return drive_type; +} + /* UDisks callback for new device */ static void udisks_new_device( const char *udi ) { @@ -246,22 +272,7 @@ static void udisks_new_device( const char *udi ) else if (!strcmp( name, "IdType" )) p_dbus_message_iter_get_basic( &variant, &type ); else if (!strcmp( name, "DriveMediaCompatibility" )) - { - DBusMessageIter media; - p_dbus_message_iter_recurse( &variant, &media ); - while (p_dbus_message_iter_get_arg_type( &media ) == DBUS_TYPE_STRING) - { - const char *media_type; - p_dbus_message_iter_get_basic( &media, &media_type ); - if (!strncmp( media_type, "optical_dvd", 11 )) - drive_type = DEVICE_DVD; - if (!strncmp( media_type, "floppy", 6 )) - drive_type = DEVICE_FLOPPY; - else if (!strncmp( media_type, "optical_", 8 ) && drive_type == DEVICE_UNKNOWN) - drive_type = DEVICE_CDROM; - p_dbus_message_iter_next( &media ); - } - } + drive_type = udisks_parse_media_compatibility( &variant ); else if (!strcmp( name, "DeviceMountPaths" )) { DBusMessageIter paths;
1
0
0
0
Nozomi Kodama : d3dx9_36: D3DXQuaternionLn computes as if the norm of the input is 1.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 4099eb8bbb4b769ec6de0640d13b777c238304ff URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4099eb8bbb4b769ec6de0640d…
Author: Nozomi Kodama <Nozomi.Kodama(a)yahoo.com> Date: Tue Jun 12 08:13:39 2012 +0800 d3dx9_36: D3DXQuaternionLn computes as if the norm of the input is 1. --- dlls/d3dx9_36/math.c | 33 ++++++++++++--------------------- dlls/d3dx9_36/tests/math.c | 19 ++++++++++++++++--- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c index 10a6cb9..5c6530a 100644 --- a/dlls/d3dx9_36/math.c +++ b/dlls/d3dx9_36/math.c @@ -1215,29 +1215,20 @@ D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, CONST D3DXQUA D3DXQUATERNION* WINAPI D3DXQuaternionLn(D3DXQUATERNION *pout, CONST D3DXQUATERNION *pq) { - FLOAT norm, normvec, theta; + FLOAT t; - norm = D3DXQuaternionLengthSq(pq); - if ( norm > 1.0001f ) - { - pout->x = pq->x; - pout->y = pq->y; - pout->z = pq->z; - pout->w = 0.0f; - } - else if( norm > 0.99999f) - { - normvec = sqrt( pq->x * pq->x + pq->y * pq->y + pq->z * pq->z ); - theta = atan2(normvec, pq->w) / normvec; - pout->x = theta * pq->x; - pout->y = theta * pq->y; - pout->z = theta * pq->z; - pout->w = 0.0f; - } + TRACE("(%p, %p)\n", pout, pq); + + if ( (pq->w >= 1.0f) || (pq->w == -1.0f) ) + t = 1.0f; else - { - FIXME("The quaternion (%f, %f, %f, %f) has a norm <1. This should not happen. Windows returns a result anyway. This case is not implemented yet.\n", pq->x, pq->y, pq->z, pq->w); - } + t = acos( pq->w ) / sqrt( 1.0f - pq->w * pq->w ); + + pout->x = t * pq->x; + pout->y = t * pq->y; + pout->z = t * pq->z; + pout->w = 0.0f; + return pout; } diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 61f8567..c93044d 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -746,11 +746,24 @@ static void D3DXQuaternionTest(void) expectedquat.x = 0.093768f; expectedquat.y = 0.187536f; expectedquat.z = 0.375073f; expectedquat.w = 0.0f; D3DXQuaternionLn(&gotquat,&Nq); expect_vec4(expectedquat,gotquat); - /* Test the cas where the norm of the quaternion is <1 */ - Nq1.x = 0.2f; Nq1.y = 0.1f; Nq1.z = 0.3; Nq1.w= 0.9f; + Nq.x = 0.0f; Nq.y = 0.0f; Nq.z = 0.0f; Nq.w = 1.0f; + expectedquat.x = 0.0f; expectedquat.y = 0.0f; expectedquat.z = 0.0f; expectedquat.w = 0.0f; + D3DXQuaternionLn(&gotquat,&Nq); + expect_vec4(expectedquat,gotquat); + Nq.x = 5.4f; Nq.y = 1.2f; Nq.z = -0.3f; Nq.w = -0.3f; + expectedquat.x = 10.616652f; expectedquat.y = 2.359256f; expectedquat.z = -0.589814f; expectedquat.w = 0.0f; + D3DXQuaternionLn(&gotquat,&Nq); + expect_vec4(expectedquat,gotquat); + /* Test the case where the norm of the quaternion is <1 */ + Nq1.x = 0.2f; Nq1.y = 0.1f; Nq1.z = 0.3; Nq1.w = 0.9f; expectedquat.x = 0.206945f; expectedquat.y = 0.103473f; expectedquat.z = 0.310418f; expectedquat.w = 0.0f; D3DXQuaternionLn(&gotquat,&Nq1); - todo_wine{ expect_vec4(expectedquat,gotquat) }; + expect_vec4(expectedquat,gotquat); + /* Test the case where the real part of the quaternion is -1.0f */ + Nq1.x = 0.2f; Nq1.y = 0.1f; Nq1.z = 0.3; Nq1.w = -1.0f; + expectedquat.x = 0.2f; expectedquat.y = 0.1f; expectedquat.z = 0.3f; expectedquat.w = 0.0f; + D3DXQuaternionLn(&gotquat,&Nq1); + expect_vec4(expectedquat,gotquat); /*_______________D3DXQuaternionMultiply________________________*/ expectedquat.x = 3.0f; expectedquat.y = 61.0f; expectedquat.z = -32.0f; expectedquat.w = 85.0f;
1
0
0
0
André Hentschel : ntdll: Enhance FreeBSD checks for cdrom code to also check for DragonFly BSD when appropriate .
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: a8139f0ba182b0b995febc1d5fde9cd9b9e5616e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a8139f0ba182b0b995febc1d5…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Tue Jun 12 19:27:36 2012 +0200 ntdll: Enhance FreeBSD checks for cdrom code to also check for DragonFly BSD when appropriate. --- dlls/ntdll/cdrom.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index 1d1aa63..1188772 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -480,7 +480,7 @@ static NTSTATUS CDROM_SyncCache(int dev, int fd) cdrom_cache[dev].toc_good = 1; return STATUS_SUCCESS; -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) int i, tsz; struct ioc_toc_header hdr; @@ -791,7 +791,7 @@ static NTSTATUS CDROM_ResetAudio(int fd) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, CDROMRESET)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode(ioctl(fd, CDIOCRESET, NULL)); #else FIXME("not supported on this O/S\n"); @@ -808,7 +808,7 @@ static NTSTATUS CDROM_SetTray(int fd, BOOL doEject) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, doEject ? CDROMEJECT : CDROMCLOSETRAY)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode((ioctl(fd, CDIOCALLOW, NULL)) || (ioctl(fd, doEject ? CDIOCEJECT : CDIOCCLOSE, NULL)) || (ioctl(fd, CDIOCPREVENT, NULL))); @@ -830,7 +830,7 @@ static NTSTATUS CDROM_ControlEjection(int fd, const PREVENT_MEDIA_REMOVAL* rmv) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, CDROM_LOCKDOOR, rmv->PreventMediaRemoval)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode(ioctl(fd, (rmv->PreventMediaRemoval) ? CDIOCPREVENT : CDIOCALLOW, NULL)); #else FIXME("not supported on this O/S\n"); @@ -985,7 +985,7 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA end: ret = CDROM_GetStatusCode(io); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) SUB_Q_HEADER* hdr = (SUB_Q_HEADER*)data; int io; struct ioc_read_subchannel read_sc; @@ -1141,7 +1141,7 @@ static NTSTATUS CDROM_Verify(int dev, int fd) return STATUS_SUCCESS; else return STATUS_NO_MEDIA_IN_DEVICE; -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) int ret; ret = ioctl(fd, CDIOCSTART, NULL); if(ret == 0) @@ -1194,7 +1194,7 @@ static NTSTATUS CDROM_PlayAudioMSF(int fd, const CDROM_PLAY_AUDIO_MSF* audio_msf msf.cdmsf_min1, msf.cdmsf_sec1, msf.cdmsf_frame1); end: ret = CDROM_GetStatusCode(io); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) struct ioc_play_msf msf; int io; @@ -1239,7 +1239,7 @@ static NTSTATUS CDROM_SeekAudioMSF(int dev, int fd, const CDROM_SEEK_AUDIO_MSF* #if defined(linux) struct cdrom_msf0 msf; struct cdrom_subchnl sc; -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) struct ioc_play_msf msf; struct ioc_read_subchannel read_sc; struct cd_sub_channel_info sc; @@ -1292,7 +1292,7 @@ static NTSTATUS CDROM_SeekAudioMSF(int dev, int fd, const CDROM_SEEK_AUDIO_MSF* return CDROM_GetStatusCode(ioctl(fd, CDROMSEEK, &msf)); } return STATUS_SUCCESS; -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) read_sc.address_format = CD_MSF_FORMAT; read_sc.track = 0; read_sc.data_len = sizeof(sc); @@ -1333,7 +1333,7 @@ static NTSTATUS CDROM_PauseAudio(int fd) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, CDROMPAUSE)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode(ioctl(fd, CDIOCPAUSE, NULL)); #else FIXME(": not supported on this O/S\n"); @@ -1350,7 +1350,7 @@ static NTSTATUS CDROM_ResumeAudio(int fd) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, CDROMRESUME)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode(ioctl(fd, CDIOCRESUME, NULL)); #else FIXME("not supported on this O/S\n"); @@ -1367,7 +1367,7 @@ static NTSTATUS CDROM_StopAudio(int fd) { #if defined(linux) return CDROM_GetStatusCode(ioctl(fd, CDROMSTOP)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) return CDROM_GetStatusCode(ioctl(fd, CDIOCSTOP, NULL)); #else FIXME("not supported on this O/S\n"); @@ -1395,7 +1395,7 @@ static NTSTATUS CDROM_GetVolume(int fd, VOLUME_CONTROL* vc) vc->PortVolume[3] = volc.channel3; } return CDROM_GetStatusCode(io); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) struct ioc_vol volc; int io; @@ -1430,7 +1430,7 @@ static NTSTATUS CDROM_SetVolume(int fd, const VOLUME_CONTROL* vc) volc.channel3 = vc->PortVolume[3]; return CDROM_GetStatusCode(ioctl(fd, CDROMVOLCTRL, &volc)); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) struct ioc_vol volc; volc.vol[0] = vc->PortVolume[0];
1
0
0
0
Jacek Caban : d3dcompiler.h: Added missing extern "C".
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: ee82123bd47d9a437f2507adaa40a5e9ae872404 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ee82123bd47d9a437f2507ada…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jun 13 11:48:04 2012 +0200 d3dcompiler.h: Added missing extern "C". --- include/d3dcompiler.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/d3dcompiler.h b/include/d3dcompiler.h index 43af264..3950143 100644 --- a/include/d3dcompiler.h +++ b/include/d3dcompiler.h @@ -21,6 +21,10 @@ #include "d3d11shader.h" +#ifdef __cplusplus +extern "C" { +#endif + #define D3DCOMPILE_DEBUG 0x0001 #define D3DCOMPILE_SKIP_VALIDATION 0x0002 #define D3DCOMPILE_SKIP_OPTIMIZATION 0x0004 @@ -85,4 +89,8 @@ HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename const D3D_SHADER_MACRO *defines, ID3DInclude *include, ID3DBlob **shader, ID3DBlob **error_messages); +#ifdef __cplusplus +} +#endif + #endif
1
0
0
0
Jacek Caban : d3d9types.h: Added missing D3DSWAPEFFECT_* values.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 71ac2d90df681aa4006cda18b08b97c98ba511b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=71ac2d90df681aa4006cda18b…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jun 13 11:47:50 2012 +0200 d3d9types.h: Added missing D3DSWAPEFFECT_* values. --- include/d3d9types.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/d3d9types.h b/include/d3d9types.h index 8855383..cdd3ada 100644 --- a/include/d3d9types.h +++ b/include/d3d9types.h @@ -1064,6 +1064,8 @@ typedef enum _D3DSWAPEFFECT { D3DSWAPEFFECT_DISCARD = 1, D3DSWAPEFFECT_FLIP = 2, D3DSWAPEFFECT_COPY = 3, + D3DSWAPEFFECT_OVERLAY = 4, + D3DSWAPEFFECT_FLIPEX = 5, D3DSWAPEFFECT_FORCE_DWORD = 0xFFFFFFFF } D3DSWAPEFFECT;
1
0
0
0
Jacek Caban : d3d9.h: Added missing D3DCREATE_* flags.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: d44ff3647526783efc6681bb31fd68562b676530 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d44ff3647526783efc6681bb3…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jun 13 11:47:40 2012 +0200 d3d9.h: Added missing D3DCREATE_* flags. --- include/d3d9.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/d3d9.h b/include/d3d9.h index e7636e5..0f52d09 100644 --- a/include/d3d9.h +++ b/include/d3d9.h @@ -43,6 +43,12 @@ #define D3DCREATE_MIXED_VERTEXPROCESSING __MSABI_LONG(0x00000080) #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT __MSABI_LONG(0x00000100) #define D3DCREATE_ADAPTERGROUP_DEVICE __MSABI_LONG(0x00000200) +#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX __MSABI_LONG(0x00000400) +#define D3DCREATE_NOWINDOWCHANGES __MSABI_LONG(0x00000800) +#define D3DCREATE_DISABLE_PSGP_THREADING __MSABI_LONG(0x00002000) +#define D3DCREATE_ENABLE_PRESENTSTATS __MSABI_LONG(0x00004000) +#define D3DCREATE_DISABLE_PRINTSCREEN __MSABI_LONG(0x00008000) +#define D3DCREATE_SCREENSAVER __MSABI_LONG(0x10000000) /***************************************************************************** * Flags for SetPrivateData
1
0
0
0
Michael Stefaniuc : wined3d: Avoid sizeof on structs with variable length arrays.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: db5053c95042f7b202ab2f07f4f5902df133d3ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=db5053c95042f7b202ab2f07f…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Jun 13 10:41:30 2012 +0200 wined3d: Avoid sizeof on structs with variable length arrays. --- dlls/wined3d/wined3d_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index 08d1554..526c749 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -96,7 +96,7 @@ struct wined3d * CDECL wined3d_create(UINT version, DWORD flags) struct wined3d *object; HRESULT hr; - object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object)); + object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, FIELD_OFFSET(struct wined3d, adapters[1])); if (!object) { ERR("Failed to allocate wined3d object memory.\n");
1
0
0
0
Michael Stefaniuc : wer: Use FIELD_OFFSET to calculate the size of a struct with variable length array .
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 435ac27d8f51bf296ff10c0fd881eb118283a6b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=435ac27d8f51bf296ff10c0fd…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Jun 13 10:39:52 2012 +0200 wer: Use FIELD_OFFSET to calculate the size of a struct with variable length array. --- dlls/wer/main.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/wer/main.c b/dlls/wer/main.c index ae9ab26..78943eb 100644 --- a/dlls/wer/main.c +++ b/dlls/wer/main.c @@ -261,7 +261,6 @@ HRESULT WINAPI WerReportCloseHandle(HREPORT hreport) HRESULT WINAPI WerReportCreate(PCWSTR eventtype, WER_REPORT_TYPE reporttype, PWER_REPORT_INFORMATION reportinfo, HREPORT *phandle) { report_t *report; - DWORD len; TRACE("(%s, %d, %p, %p)\n", debugstr_w(eventtype), reporttype, reportinfo, phandle); if (reportinfo) { @@ -274,9 +273,7 @@ HRESULT WINAPI WerReportCreate(PCWSTR eventtype, WER_REPORT_TYPE reporttype, PWE return E_INVALIDARG; } - len = lstrlenW(eventtype) + 1; - - report = heap_alloc_zero(len * sizeof(WCHAR) + sizeof(report_t)); + report = heap_alloc_zero(FIELD_OFFSET(report_t, eventtype[lstrlenW(eventtype) + 1])); if (!report) return __HRESULT_FROM_WIN32(ERROR_OUTOFMEMORY);
1
0
0
0
Francois Gouget : iphlpapi: Don' t rely on the HAVE_XXX macros having a numeric values.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 0f3085c82e2d1c4a5d90d1f4c5253256ad2f4871 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0f3085c82e2d1c4a5d90d1f4c…
Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Jun 13 04:53:28 2012 +0200 iphlpapi: Don't rely on the HAVE_XXX macros having a numeric values. --- dlls/iphlpapi/ipstats.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index 009dd99..2f8ec90 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -664,9 +664,9 @@ DWORD WINAPI GetIpStatistics(PMIB_IPSTATS stats) int mib[] = {CTL_NET, PF_INET, IPPROTO_IP, IPCTL_STATS}; #define MIB_LEN (sizeof(mib) / sizeof(mib[0])) int ip_ttl, ip_forwarding; -#if HAVE_STRUCT_IPSTAT_IPS_TOTAL +#if defined(HAVE_STRUCT_IPSTAT_IPS_TOTAL) struct ipstat ip_stat; -#elif HAVE_STRUCT_IP_STATS_IPS_TOTAL +#elif defined(HAVE_STRUCT_IP_STATS_IPS_TOTAL) struct ip_stats ip_stat; #endif size_t needed; @@ -812,7 +812,7 @@ DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS stats) } if (kc) kstat_close( kc ); } -#elif defined(HAVE_SYS_SYSCTL_H) && defined(TCPCTL_STATS) && (HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT || HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT) +#elif defined(HAVE_SYS_SYSCTL_H) && defined(TCPCTL_STATS) && (defined(HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT) || defined(HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT)) { #ifndef TCPTV_MIN /* got removed in Mac OS X for some reason */ #define TCPTV_MIN 2 @@ -821,9 +821,9 @@ DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS stats) int mib[] = {CTL_NET, PF_INET, IPPROTO_TCP, TCPCTL_STATS}; #define MIB_LEN (sizeof(mib) / sizeof(mib[0])) #define hz 1000 -#if HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT +#if defined(HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT) struct tcpstat tcp_stat; -#elif HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT +#elif defined(HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT) struct tcp_stats tcp_stat; #endif size_t needed = sizeof(tcp_stat);
1
0
0
0
Detlef Riekenberg : kernel32/tests: Do not test GetLastError on success.
by Alexandre Julliard
13 Jun '12
13 Jun '12
Module: wine Branch: master Commit: 697cea2f93226537d32afc521d6769cdd52f1de3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=697cea2f93226537d32afc521…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Tue Jun 12 22:36:45 2012 +0200 kernel32/tests: Do not test GetLastError on success. --- dlls/kernel32/tests/version.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/tests/version.c b/dlls/kernel32/tests/version.c index 265eae4..43f42d5 100644 --- a/dlls/kernel32/tests/version.c +++ b/dlls/kernel32/tests/version.c @@ -153,8 +153,6 @@ static void test_GetVersionEx(void) ok(ret || broken(ret == 0), /* win95 */ "Expected GetVersionExA to succeed\n"); - ok(GetLastError() == 0xdeadbeef, - "Expected 0xdeadbeef, got %d\n", GetLastError()); } static void test_VerifyVersionInfo(void)
1
0
0
0
← Newer
1
...
53
54
55
56
57
58
59
...
83
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
Results per page:
10
25
50
100
200