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
November 2008
----- 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
734 discussions
Start a n
N
ew thread
Christian Costa : d3dxof: Increase max objects and check limit.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: 3b30fd9d3a14043dde883e8cf8a72d850dbfa894 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3b30fd9d3a14043dde883e8cf…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Tue Nov 11 12:39:46 2008 +0100 d3dxof: Increase max objects and check limit. --- dlls/d3dxof/d3dxof.c | 6 ++++++ dlls/d3dxof/d3dxof_private.h | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 42149c9..1c3c99b 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -2077,6 +2077,12 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE TRACE("(%p/%p)->(%p)\n", This, iface, ppDataObj); + if (This->nb_xobjects >= MAX_OBJECTS) + { + ERR("Too many objects\n"); + return DXFILEERR_NOMOREOBJECTS; + } + if (!This->buf.rem_bytes) return DXFILEERR_NOMOREOBJECTS; diff --git a/dlls/d3dxof/d3dxof_private.h b/dlls/d3dxof/d3dxof_private.h index f70eb67..80f67a2 100644 --- a/dlls/d3dxof/d3dxof_private.h +++ b/dlls/d3dxof/d3dxof_private.h @@ -38,7 +38,7 @@ #define MAX_MEMBERS 50 #define MAX_CHILDS 20 #define MAX_TEMPLATES 200 -#define MAX_OBJECTS 200 +#define MAX_OBJECTS 500 #define MAX_SUBOBJECTS 120 #define MAX_STRINGS_BUFFER 200
1
0
0
0
Christian Costa : d3dxof: Support also xfile version 3.03.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: ba11e60e8ba4e6c0287e81b5522ecf3672f9cffb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ba11e60e8ba4e6c0287e81b55…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Tue Nov 11 12:38:52 2008 +0100 d3dxof: Support also xfile version 3.03. --- dlls/d3dxof/d3dxof.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index a953573..42149c9 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -38,7 +38,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3dxof); #define MAKEFOUR(a,b,c,d) ((DWORD)a + ((DWORD)b << 8) + ((DWORD)c << 16) + ((DWORD)d << 24)) #define XOFFILE_FORMAT_MAGIC MAKEFOUR('x','o','f',' ') -#define XOFFILE_FORMAT_VERSION MAKEFOUR('0','3','0','2') +#define XOFFILE_FORMAT_VERSION_302 MAKEFOUR('0','3','0','2') +#define XOFFILE_FORMAT_VERSION_303 MAKEFOUR('0','3','0','3') #define XOFFILE_FORMAT_BINARY MAKEFOUR('b','i','n',' ') #define XOFFILE_FORMAT_TEXT MAKEFOUR('t','x','t',' ') #define XOFFILE_FORMAT_COMPRESSED MAKEFOUR('c','m','p',' ') @@ -254,7 +255,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV goto error; } - if (header[1] != XOFFILE_FORMAT_VERSION) + if ((header[1] != XOFFILE_FORMAT_VERSION_302) && (header[1] != XOFFILE_FORMAT_VERSION_303)) { hr = DXFILEERR_BADFILEVERSION; goto error; @@ -1153,7 +1154,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP read_bytes(&buf, &token_header, 4); - if (token_header != XOFFILE_FORMAT_VERSION) + if ((token_header != XOFFILE_FORMAT_VERSION_302) && (token_header != XOFFILE_FORMAT_VERSION_303)) return DXFILEERR_BADFILEVERSION; read_bytes(&buf, &token_header, 4);
1
0
0
0
Francois Gouget : shell32/tests: Remove spaces before '\n' in ok() calls.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: eae202c7ec809ebef009632301678c3a2146f82a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eae202c7ec809ebef00963230…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Nov 11 11:59:52 2008 +0100 shell32/tests: Remove spaces before '\n' in ok() calls. --- dlls/shell32/tests/shlfileop.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index 2607c63..81f893c 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -314,14 +314,14 @@ static void test_get_file_info_iconlist(void) hr = pSHGetFileInfoW((const WCHAR *)pidList, 0, &shInfow, sizeof(shInfow), SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON); ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes==0xcfcfcfcf,"dwAttributes modified\n"); memset(&shInfow, 0xcf, sizeof(shInfow)); hr = pSHGetFileInfoW((const WCHAR *)pidList, 0, &shInfow, sizeof(shInfow), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON); ok(hr != 0, " SHGFI_ICON|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.hIcon!=(HICON)0xcfcfcfcf && shInfow.hIcon!=0,"hIcon invalid\n"); if (shInfow.hIcon!=(HICON)0xcfcfcfcf) DestroyIcon(shInfow.hIcon); todo_wine ok(shInfow.dwAttributes==0,"dwAttributes not set\n"); @@ -330,7 +330,7 @@ static void test_get_file_info_iconlist(void) hr = pSHGetFileInfoW((const WCHAR *)pidList, 0, &shInfow, sizeof(shInfow), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_LARGEICON); ok(hr != 0, "SHGFI_ICON|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_LARGEICON Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.hIcon!=(HICON)0xcfcfcfcf && shInfow.hIcon!=0,"hIcon invalid\n"); if (shInfow.hIcon != (HICON)0xcfcfcfcf) DestroyIcon(shInfow.hIcon); todo_wine ok(shInfow.dwAttributes==0,"dwAttributes not set\n"); @@ -339,7 +339,7 @@ static void test_get_file_info_iconlist(void) hr = pSHGetFileInfoW((const WCHAR *)pidList, 0, &shInfow, sizeof(shInfow), SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_LARGEICON); ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_LARGEICON Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes==0xcfcfcfcf,"dwAttributes modified\n"); memset(&shInfow, 0xcf, sizeof(shInfow)); @@ -368,7 +368,7 @@ static void test_get_file_info_iconlist(void) SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON| SHGFI_ATTRIBUTES); ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON|SHGFI_ATTRIBUTES Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes!=0xcfcfcfcf,"dwAttributes not set\n"); memset(&shInfow, 0xcf, sizeof(shInfow)); @@ -376,7 +376,7 @@ static void test_get_file_info_iconlist(void) SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON| SHGFI_EXETYPE); todo_wine ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_SMALLICON|SHGFI_EXETYPE Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes==0xcfcfcfcf,"dwAttributes modified\n"); memset(&shInfow, 0xcf, sizeof(shInfow)); @@ -398,14 +398,14 @@ static void test_get_file_info_iconlist(void) SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL| SHGFI_ATTRIBUTES); ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_ATTRIBUTES Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes!=0xcfcfcfcf,"dwAttributes not set\n"); memset(&shInfow, 0xcf, sizeof(shInfow)); hr = pSHGetFileInfoW((const WCHAR *)pidList, 0, &shInfow, sizeof(shInfow), SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_EXETYPE); todo_wine ok(hr != 0, "SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_PIDL|SHGFI_EXETYPE Failed\n"); - ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing \n"); + ok(shInfow.iIcon!=0xcfcfcfcf, "Icon Index Missing\n"); ok(shInfow.dwAttributes==0xcfcfcfcf,"dwAttributes modified\n"); memset(&shInfow, 0xcf, sizeof(shInfow));
1
0
0
0
Francois Gouget : gdiplus: Add a trailing '\n' to a Wine trace.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: 545b7764f4b9600f5a81a2d7f48bc8dd50f09fd5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=545b7764f4b9600f5a81a2d7f…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Nov 11 11:59:42 2008 +0100 gdiplus: Add a trailing '\n' to a Wine trace. --- dlls/gdiplus/pen.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index ea41a3a..61f1898 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -106,7 +106,7 @@ GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit, GpPen *gp_pen; GpBrush *clone_brush; - TRACE("(%p, %.2f, %d, %p)", brush, width, unit, pen); + TRACE("(%p, %.2f, %d, %p)\n", brush, width, unit, pen); if(!pen || !brush) return InvalidParameter;
1
0
0
0
Paul Vriens : msi/tests: Fix some test failures on Win9x and WinMe.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: b4874a8921e76d95009a9dd26f0490ca53d6fd4d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4874a8921e76d95009a9dd26…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Tue Nov 11 13:37:30 2008 +0100 msi/tests: Fix some test failures on Win9x and WinMe. --- dlls/msi/tests/automation.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index 4e82e9f..9568fbf 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -1816,9 +1816,18 @@ static void test_Installer_RegistryValue(void) HKEY curr_user = (HKEY)1; HRESULT hr; BOOL bRet; + LONG lRet; /* Delete keys */ - if (!RegOpenKeyW( HKEY_CURRENT_USER, szKey, &hkey )) delete_key( hkey ); + SetLastError(0xdeadbeef); + lRet = RegOpenKeyW( HKEY_CURRENT_USER, szKey, &hkey ); + if (!lRet && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("Needed W-functions are not implemented\n"); + return; + } + if (!lRet) + delete_key( hkey ); /* Does our key exist? Shouldn't; check with all three possible value parameter types */ hr = Installer_RegistryValueE(curr_user, szKey, &bRet);
1
0
0
0
Paul Vriens : wininet/tests: Fix a test failure on some Win98 boxes.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: e7da58468b7a580a92114eeb5d3cb5fa59d5818a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e7da58468b7a580a92114eeb5…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Mon Nov 10 19:18:14 2008 +0100 wininet/tests: Fix a test failure on some Win98 boxes. --- dlls/wininet/tests/ftp.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/tests/ftp.c b/dlls/wininet/tests/ftp.c index 34aa68f..335215e 100644 --- a/dlls/wininet/tests/ftp.c +++ b/dlls/wininet/tests/ftp.c @@ -385,7 +385,9 @@ static void test_openfile(HINTERNET hFtp, HINTERNET hConnect) SetLastError(0xdeadbeef); hOpenFile = FtpOpenFileA(hFtp, "welcome.msg", GENERIC_READ, FTP_TRANSFER_TYPE_ASCII, 0); ok ( hOpenFile != NULL, "Expected FtpOpenFileA to succeed\n"); - ok ( GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", GetLastError()); + ok ( GetLastError() == ERROR_SUCCESS || + broken(GetLastError() == ERROR_FILE_NOT_FOUND), /* Win98 */ + "Expected ERROR_SUCCESS, got %u\n", GetLastError()); if (hOpenFile) {
1
0
0
0
Nicolas Le Cam : crypt32/tests: Fix a failing test on win2000.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: ed364027e7c352904a5fb4f0cafb947daf4321bf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ed364027e7c352904a5fb4f0c…
Author: Nicolas Le Cam <niko.lecam(a)gmail.com> Date: Mon Nov 10 18:44:40 2008 +0100 crypt32/tests: Fix a failing test on win2000. --- dlls/crypt32/tests/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index 67d4725..7a7d458 100644 --- a/dlls/crypt32/tests/main.c +++ b/dlls/crypt32/tests/main.c @@ -452,7 +452,7 @@ static void test_format_object(void) ret = pCryptFormatObject(X509_ASN_ENCODING, 0, 0, NULL, NULL, encodedBigInt, sizeof(encodedBigInt), str, &size); ok(ret, "CryptFormatObject failed: %d\n", GetLastError()); - ok(!lstrcmpW(str, encodedBigIntStr), "unexpected format string\n"); + ok(!lstrcmpiW(str, encodedBigIntStr), "unexpected format string\n"); HeapFree(GetProcessHeap(), 0, str); } /* When called with the default encoding type for any undefined struct
1
0
0
0
Nicolas Le Cam : winspool.drv/tests: Fix a test on all platforms.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: 094085dd7e45d0c88d51c374d51362f0729f2216 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=094085dd7e45d0c88d51c374d…
Author: Nicolas Le Cam <niko.lecam(a)gmail.com> Date: Thu Nov 6 13:58:34 2008 +0100 winspool.drv/tests: Fix a test on all platforms. --- dlls/winspool.drv/tests/info.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index d1f4dea..fb6dc40 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -2363,7 +2363,9 @@ static void test_DeviceCapabilities(void) fields = DeviceCapabilities(device, port, DC_FIELDS, NULL, NULL); ok(fields != (DWORD)-1, "DeviceCapabilities DC_FIELDS failed\n"); - ok(fields == dm->dmFields, "fields %x != dm->dmFields %x\n", fields, dm->dmFields); + todo_wine + ok(fields == (dm->dmFields | DM_FORMNAME), + "fields %x != (dm->dmFields | DM_FORMNAME) %x\n", fields, dm->dmFields); GlobalUnlock(prn_dlg.hDevMode); GlobalFree(prn_dlg.hDevMode);
1
0
0
0
Eric Pouech : dbghelp: Properly add CPU info to minidump.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: 9bac505f2a96d9fdc8fe8c86a7feb66a0ed3704e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9bac505f2a96d9fdc8fe8c86a…
Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Mon Nov 10 11:27:52 2008 +0100 dbghelp: Properly add CPU info to minidump. --- dlls/dbghelp/minidump.c | 75 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 73 insertions(+), 2 deletions(-) diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c index c506be4..cc12415 100644 --- a/dlls/dbghelp/minidump.c +++ b/dlls/dbghelp/minidump.c @@ -556,6 +556,44 @@ static unsigned dump_modules(struct dump_context* dc, BOOL dump_elf) return sz; } +/* Calls cpuid with an eax of 'ax' and returns the 16 bytes in *p + * We are compiled with -fPIC, so we can't clobber ebx. + */ +static inline void do_x86cpuid(unsigned int ax, unsigned int *p) +{ +#if defined(__GNUC__) && defined(__i386__) + __asm__("pushl %%ebx\n\t" + "cpuid\n\t" + "movl %%ebx, %%esi\n\t" + "popl %%ebx" + : "=a" (p[0]), "=S" (p[1]), "=c" (p[2]), "=d" (p[3]) + : "0" (ax)); +#endif +} + +/* From xf86info havecpuid.c 1.11 */ +static inline int have_x86cpuid(void) +{ +#if defined(__GNUC__) && defined(__i386__) + unsigned int f1, f2; + __asm__("pushfl\n\t" + "pushfl\n\t" + "popl %0\n\t" + "movl %0,%1\n\t" + "xorl %2,%0\n\t" + "pushl %0\n\t" + "popfl\n\t" + "pushfl\n\t" + "popl %0\n\t" + "popfl" + : "=&r" (f1), "=&r" (f2) + : "ir" (0x00200000)); + return ((f1^f2) & 0x00200000) != 0; +#else + return 0; +#endif +} + /****************************************************************** * dump_system_info * @@ -587,9 +625,42 @@ static unsigned dump_system_info(struct dump_context* dc) mdSysInfo.u1.Reserved1 = 0; mdSysInfo.u1.s.SuiteMask = VER_SUITE_TERMINAL; - FIXME("fill in CPU vendorID and feature set\n"); - memset(&mdSysInfo.Cpu, 0, sizeof(mdSysInfo.Cpu)); + if (have_x86cpuid()) + { + unsigned regs0[4], regs1[4]; + + do_x86cpuid(0, regs0); + mdSysInfo.Cpu.X86CpuInfo.VendorId[0] = regs0[1]; + mdSysInfo.Cpu.X86CpuInfo.VendorId[1] = regs0[2]; + mdSysInfo.Cpu.X86CpuInfo.VendorId[2] = regs0[3]; + do_x86cpuid(1, regs1); + mdSysInfo.Cpu.X86CpuInfo.VersionInformation = regs1[0]; + mdSysInfo.Cpu.X86CpuInfo.FeatureInformation = regs1[3]; + mdSysInfo.Cpu.X86CpuInfo.AMDExtendedCpuFeatures = 0; + if (regs0[1] == 0x68747541 /* "Auth" */ && + regs0[3] == 0x69746e65 /* "enti" */ && + regs0[2] == 0x444d4163 /* "cAMD" */) + { + do_x86cpuid(0x80000000, regs1); /* get vendor cpuid level */ + if (regs1[0] >= 0x80000001) + { + do_x86cpuid(0x80000001, regs1); /* get vendor features */ + mdSysInfo.Cpu.X86CpuInfo.AMDExtendedCpuFeatures = regs1[3]; + } + } + } + else + { + unsigned i; + ULONG64 one = 1; + mdSysInfo.Cpu.OtherCpuInfo.ProcessorFeatures[0] = 0; + mdSysInfo.Cpu.OtherCpuInfo.ProcessorFeatures[1] = 0; + + for (i = 0; i < sizeof(mdSysInfo.Cpu.OtherCpuInfo.ProcessorFeatures[0]) * 8; i++) + if (IsProcessorFeaturePresent(i)) + mdSysInfo.Cpu.OtherCpuInfo.ProcessorFeatures[0] |= one << i; + } append(dc, &mdSysInfo, sizeof(mdSysInfo)); /* write the service pack version string after this stream. It is referenced within the
1
0
0
0
Andrew Fenn : xinput: Added XInputGetCapabilities function with test case.
by Alexandre Julliard
11 Nov '08
11 Nov '08
Module: wine Branch: master Commit: 611ebb53e315518c5580b26c8aea014a4c749cb1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=611ebb53e315518c5580b26c8…
Author: Andrew Fenn <andrewfenn(a)gmail.com> Date: Mon Nov 10 16:33:15 2008 +0000 xinput: Added XInputGetCapabilities function with test case. --- dlls/xinput1_3/tests/xinput.c | 27 +++++++++++++++++++++++++++ dlls/xinput1_3/xinput1_3.spec | 2 +- dlls/xinput1_3/xinput1_3_main.c | 12 ++++++++++++ 3 files changed, 40 insertions(+), 1 deletions(-) diff --git a/dlls/xinput1_3/tests/xinput.c b/dlls/xinput1_3/tests/xinput.c index 2cdc168..ffc0d33 100644 --- a/dlls/xinput1_3/tests/xinput.c +++ b/dlls/xinput1_3/tests/xinput.c @@ -24,6 +24,7 @@ #include "wine/test.h" static DWORD (WINAPI *pXInputGetState)(DWORD, XINPUT_STATE*); +static DWORD (WINAPI *pXInputGetCapabilities)(DWORD,DWORD,XINPUT_CAPABILITIES*); static void test_get_state(void) { @@ -64,6 +65,30 @@ static void test_get_state(void) ok(result == ERROR_BAD_ARGUMENTS, "XInputGetState returned (%d)\n", result); } +static void test_get_capabilities(void) +{ + XINPUT_CAPABILITIES capabilities; + DWORD controllerNum; + DWORD result; + + for(controllerNum=0; controllerNum < XUSER_MAX_COUNT; controllerNum++) + { + ZeroMemory(&capabilities, sizeof(XINPUT_CAPABILITIES)); + + result = pXInputGetCapabilities(controllerNum, XINPUT_FLAG_GAMEPAD, &capabilities); + ok(result == ERROR_SUCCESS || result == ERROR_DEVICE_NOT_CONNECTED, "XInputGetCapabilities failed with (%d)\n", result); + + if (ERROR_DEVICE_NOT_CONNECTED == result) + { + skip("Controller %d is not connected\n", controllerNum); + } + } + + ZeroMemory(&capabilities, sizeof(XINPUT_CAPABILITIES)); + result = pXInputGetCapabilities(XUSER_MAX_COUNT+1, XINPUT_FLAG_GAMEPAD, &capabilities); + ok(result == ERROR_BAD_ARGUMENTS, "XInputGetCapabilities returned (%d)\n", result); +} + START_TEST(xinput) { HMODULE hXinput; @@ -72,7 +97,9 @@ START_TEST(xinput) if (hXinput) { pXInputGetState = (void*)GetProcAddress(hXinput, "XInputGetState"); + pXInputGetCapabilities = (void*)GetProcAddress(hXinput, "XInputGetCapabilities"); test_get_state(); + test_get_capabilities(); } else { diff --git a/dlls/xinput1_3/xinput1_3.spec b/dlls/xinput1_3/xinput1_3.spec index 8fb6353..92d45e9 100644 --- a/dlls/xinput1_3/xinput1_3.spec +++ b/dlls/xinput1_3/xinput1_3.spec @@ -2,6 +2,6 @@ @ stub XInputSetState #(long ptr) @ stdcall XInputGetState(long ptr) @ stub XInputGetKeystroke #(long long ptr) -@ stub XInputGetCapabilities #(long long ptr) +@ stdcall XInputGetCapabilities(long long ptr) @ stub XInputGetDSoundAudioDeviceGuids #(long ptr ptr) @ stub XInputGetBatteryInformation diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c index f2b6500..c25c0d7 100644 --- a/dlls/xinput1_3/xinput1_3_main.c +++ b/dlls/xinput1_3/xinput1_3_main.c @@ -57,3 +57,15 @@ DWORD WINAPI XInputGetState(DWORD dwUserIndex, XINPUT_STATE* pState) } return ERROR_BAD_ARGUMENTS; } + +DWORD WINAPI XInputGetCapabilities(DWORD dwUserIndex, DWORD dwFlags, XINPUT_CAPABILITIES* pCapabilities) +{ + FIXME("(%d %d %p)\n", dwUserIndex, dwFlags, pCapabilities); + + if (dwUserIndex < XUSER_MAX_COUNT) + { + return ERROR_DEVICE_NOT_CONNECTED; + /* If controller exists then return ERROR_SUCCESS */ + } + return ERROR_BAD_ARGUMENTS; +}
1
0
0
0
← Newer
1
...
45
46
47
48
49
50
51
...
74
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
Results per page:
10
25
50
100
200