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
January 2007
----- 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
4 participants
893 discussions
Start a n
N
ew thread
Francois Gouget : wintrust/tests: Print GetLastError() in decimal with '%u' .
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: b66eeddec6d338d18b911e906087b1931577654b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b66eeddec6d338d18b911e906…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 9 12:21:57 2007 +0100 wintrust/tests: Print GetLastError() in decimal with '%u'. --- dlls/wintrust/tests/register.c | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c index 8a55c11..d442c07 100644 --- a/dlls/wintrust/tests/register.c +++ b/dlls/wintrust/tests/register.c @@ -75,7 +75,7 @@ static void test_AddRem_ActionID(void) ok (!ret, "Expected WintrustAddActionID to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER /* XP/W2K3 */ || GetLastError() == 0xdeadbeef /* Win98/NT4/W2K */, - "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %u.\n", GetLastError()); /* NULL functions */ SetLastError(0xdeadbeef); @@ -83,7 +83,7 @@ static void test_AddRem_ActionID(void) ok (!ret, "Expected WintrustAddActionID to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER /* XP/W2K3 */ || GetLastError() == 0xdeadbeef /* Win98/NT4/W2K */, - "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %u.\n", GetLastError()); /* All OK (although no functions defined), except cbStruct is not set in ActionIDFunctions */ SetLastError(0xdeadbeef); @@ -92,7 +92,7 @@ static void test_AddRem_ActionID(void) ok (!ret, "Expected WintrustAddActionID to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER /* XP/W2K3 */ || GetLastError() == 0xdeadbeef /* Win98/NT4/W2K */, - "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER(W2K3) or 0xdeadbeef(Win98/NT4/W2K), got %u.\n", GetLastError()); /* All OK (although no functions defined) and cbStruct is set now */ SetLastError(0xdeadbeef); @@ -101,7 +101,7 @@ static void test_AddRem_ActionID(void) ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions); ok (ret, "Expected WintrustAddActionID to succeed.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* All OK and all (but 1) functions are correctly defined. The DLL and entrypoints * are not present. @@ -120,7 +120,7 @@ static void test_AddRem_ActionID(void) ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions); ok (ret, "Expected WintrustAddActionID to succeed.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* All OK and all functions are correctly defined. The DLL and entrypoints * are not present. @@ -139,26 +139,26 @@ static void test_AddRem_ActionID(void) ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions); ok (ret, "Expected WintrustAddActionID to succeed.\n"); ok (GetLastError() == 0xdeadbeef, - "Expected 0xdeadbeef, got %d.\n", GetLastError()); + "Expected 0xdeadbeef, got %u.\n", GetLastError()); SetLastError(0xdeadbeef); ret = pWintrustRemoveActionID(&ActionID); - ok ( ret, "WintrustRemoveActionID failed : 0x%08x\n", GetLastError()); - ok ( GetLastError() == 0xdeadbeef, "Last error should not have been changed: 0x%08x\n", GetLastError()); + ok ( ret, "WintrustRemoveActionID failed : %d\n", GetLastError()); + ok ( GetLastError() == 0xdeadbeef, "Last error should not have been changed: %u\n", GetLastError()); /* NULL input */ SetLastError(0xdeadbeef); ret = pWintrustRemoveActionID(NULL); ok (ret, "Expected WintrustRemoveActionID to succeed.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* The passed GUID is removed by a previous call, so it's basically a test with a nonexistent Trust provider */ SetLastError(0xdeadbeef); ret = pWintrustRemoveActionID(&ActionID); ok (ret, "Expected WintrustRemoveActionID to succeed.\n"); ok (GetLastError() == 0xdeadbeef, - "Expected 0xdeadbeef, got %d.\n", GetLastError()); + "Expected 0xdeadbeef, got %u.\n", GetLastError()); } static void test_AddDefaultForUsage(void) @@ -177,14 +177,14 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(NULL, NULL); ok (!ret, "Expected WintrustAddDefaultForUsage to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* NULL defusage */ SetLastError(0xdeadbeef); ret = pWintrustAddDefaultForUsage(oid, NULL); ok (!ret, "Expected WintrustAddDefaultForUsage to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* NULL oid and proper defusage */ memset(&DefUsage, 0 , sizeof(CRYPT_PROVIDER_REGDEFUSAGE)); @@ -197,7 +197,7 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(NULL, &DefUsage); ok (!ret, "Expected WintrustAddDefaultForUsage to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* Just the ActionID */ memset(&DefUsage, 0 , sizeof(CRYPT_PROVIDER_REGDEFUSAGE)); @@ -207,7 +207,7 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(oid, &DefUsage); ok ( ret, "Expected WintrustAddDefaultForUsage to succeed\n"); ok (GetLastError() == 0xdeadbeef, - "Last error should not have been changed: 0x%08x\n", GetLastError()); + "Last error should not have been changed: %u\n", GetLastError()); /* No ActionID */ memset(&DefUsage, 0 , sizeof(CRYPT_PROVIDER_REGDEFUSAGE)); @@ -218,7 +218,7 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(oid, &DefUsage); ok (!ret, "Expected WintrustAddDefaultForUsage to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* cbStruct set to 0 */ memset(&DefUsage, 0 , sizeof(CRYPT_PROVIDER_REGDEFUSAGE)); @@ -231,7 +231,7 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(oid, &DefUsage); ok (!ret, "Expected WintrustAddDefaultForUsage to fail.\n"); ok (GetLastError() == ERROR_INVALID_PARAMETER, - "Expected ERROR_INVALID_PARAMETER, got %d.\n", GetLastError()); + "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError()); /* All OK */ memset(&DefUsage, 0 , sizeof(CRYPT_PROVIDER_REGDEFUSAGE)); @@ -244,7 +244,7 @@ static void test_AddDefaultForUsage(void ret = pWintrustAddDefaultForUsage(oid, &DefUsage); ok ( ret, "Expected WintrustAddDefaultForUsage to succeed\n"); ok (GetLastError() == 0xdeadbeef, - "Last error should not have been changed: 0x%08x\n", GetLastError()); + "Last error should not have been changed: %u\n", GetLastError()); /* There is no corresponding remove for WintrustAddDefaultForUsage * so we delete the registry key manually.
1
0
0
0
Francois Gouget : mcicda: Compare GetLastError() to kernel error codes, not ntdll ones.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: eb75b17801cf07903a62c44ddd2d5ce25dba049f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eb75b17801cf07903a62c44dd…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 9 12:17:54 2007 +0100 mcicda: Compare GetLastError() to kernel error codes, not ntdll ones. --- dlls/mcicda/mcicda.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/mcicda/mcicda.c b/dlls/mcicda/mcicda.c index e134b12..359df7f 100644 --- a/dlls/mcicda/mcicda.c +++ b/dlls/mcicda/mcicda.c @@ -121,7 +121,7 @@ static DWORD MCICDA_GetStatus(WINE_MC fmt.Format = IOCTL_CDROM_CURRENT_POSITION; if (!DeviceIoControl(wmcda->handle, IOCTL_CDROM_READ_Q_CHANNEL, &fmt, sizeof(fmt), &data, sizeof(data), &br, NULL)) { - if (GetLastError() == STATUS_NO_MEDIA_IN_DEVICE) mode = MCI_MODE_OPEN; + if (GetLastError() == ERROR_NOT_READY) mode = MCI_MODE_OPEN; } else { switch (data.CurrentPosition.Header.AudioStatus) { @@ -145,8 +145,8 @@ static int MCICDA_GetError(WINE_MCICDAUD { switch (GetLastError()) { - case STATUS_NO_MEDIA_IN_DEVICE: return MCIERR_DEVICE_NOT_READY; - case STATUS_IO_DEVICE_ERROR: return MCIERR_HARDWARE; + case ERROR_NOT_READY: return MCIERR_DEVICE_NOT_READY; + case ERROR_IO_DEVICE: return MCIERR_HARDWARE; default: FIXME("Unknown mode %x\n", GetLastError()); }
1
0
0
0
Hans Leidekker : kernel32: Add a stub implementation for GetVolumeNameForVolumeMountPoint{A, W}.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 7918c59f867e438b1e609010d5057025764693b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7918c59f867e438b1e609010d…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sun Jan 7 13:08:31 2007 +0100 kernel32: Add a stub implementation for GetVolumeNameForVolumeMountPoint{A, W}. --- dlls/kernel32/kernel32.spec | 4 +- dlls/kernel32/tests/volume.c | 44 ++++++++++++++++++++++++++++++++++++++++++ dlls/kernel32/volume.c | 41 +++++++++++++++++++++++++++++++++++--- 3 files changed, 83 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index fa52d1b..0e8a1fc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -649,8 +649,8 @@ @ stdcall GetVersionExW(ptr) @ stdcall GetVolumeInformationA(str ptr long ptr ptr ptr ptr long) @ stdcall GetVolumeInformationW(wstr ptr long ptr ptr ptr ptr long) -@ stub GetVolumeNameForVolumeMountPointA -@ stdcall GetVolumeNameForVolumeMountPointW(wstr long long) +@ stdcall GetVolumeNameForVolumeMountPointA(str ptr long) +@ stdcall GetVolumeNameForVolumeMountPointW(wstr ptr long) @ stdcall GetVolumePathNameA(str ptr long) @ stdcall GetVolumePathNameW(wstr ptr long) # @ stub GetVolumePathNamesForVolumeNameA diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c index b27fa74..e940a4b 100644 --- a/dlls/kernel32/tests/volume.c +++ b/dlls/kernel32/tests/volume.c @@ -45,7 +45,51 @@ static void test_query_dos_deviceA(void) } } +static void test_GetVolumeNameForVolumeMountPointA(void) +{ + BOOL ret; + char volume[MAX_PATH], path[] = "c:\\"; + DWORD len = sizeof(volume); + + ret = GetVolumeNameForVolumeMountPointA(path, volume, 0); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n"); + + if (0) { /* these crash on XP */ + ret = GetVolumeNameForVolumeMountPointA(path, NULL, len); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n"); + + ret = GetVolumeNameForVolumeMountPointA(NULL, volume, len); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n"); + } + + ret = GetVolumeNameForVolumeMountPointA(path, volume, len); + ok(ret == TRUE, "GetVolumeNameForVolumeMountPointA failed\n"); +} + +static void test_GetVolumeNameForVolumeMountPointW(void) +{ + BOOL ret; + WCHAR volume[MAX_PATH], path[] = {'c',':','\\',0}; + DWORD len = sizeof(volume) / sizeof(WCHAR); + + ret = GetVolumeNameForVolumeMountPointW(path, volume, 0); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n"); + + if (0) { /* these crash on XP */ + ret = GetVolumeNameForVolumeMountPointW(path, NULL, len); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointW succeeded\n"); + + ret = GetVolumeNameForVolumeMountPointW(NULL, volume, len); + ok(ret == FALSE, "GetVolumeNameForVolumeMountPointW succeeded\n"); + } + + ret = GetVolumeNameForVolumeMountPointW(path, volume, len); + ok(ret == TRUE, "GetVolumeNameForVolumeMountPointW failed\n"); +} + START_TEST(volume) { test_query_dos_deviceA(); + test_GetVolumeNameForVolumeMountPointA(); + test_GetVolumeNameForVolumeMountPointW(); } diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c index f679250..d73e603 100644 --- a/dlls/kernel32/volume.c +++ b/dlls/kernel32/volume.c @@ -748,14 +748,47 @@ BOOL WINAPI SetVolumeLabelA(LPCSTR root, /*********************************************************************** - * GetVolumeNameForVolumeMountPointW (KERNEL32.@) + * GetVolumeNameForVolumeMountPointA (KERNEL32.@) */ -BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR str, LPWSTR dst, DWORD size) +BOOL WINAPI GetVolumeNameForVolumeMountPointA( LPCSTR path, LPSTR volume, DWORD size ) { - FIXME("(%s, %p, %x): stub\n", debugstr_w(str), dst, size); - return 0; + BOOL ret; + WCHAR volumeW[50], *pathW = NULL; + DWORD len = min( sizeof(volumeW) / sizeof(WCHAR), size ); + + TRACE("(%s, %p, %x)\n", debugstr_a(path), volume, size); + + if (!path || !(pathW = FILE_name_AtoW( path, TRUE ))) + return FALSE; + + if ((ret = GetVolumeNameForVolumeMountPointW( pathW, volumeW, len ))) + FILE_name_WtoA( volumeW, -1, volume, len ); + + HeapFree( GetProcessHeap(), 0, pathW ); + return ret; } +/*********************************************************************** + * GetVolumeNameForVolumeMountPointW (KERNEL32.@) + */ +BOOL WINAPI GetVolumeNameForVolumeMountPointW( LPCWSTR path, LPWSTR volume, DWORD size ) +{ + BOOL ret = FALSE; + static const WCHAR fmt[] = + { '\\','\\','?','\\','V','o','l','u','m','e','{','%','0','2','x','}','\\',0 }; + + TRACE("(%s, %p, %x)\n", debugstr_w(path), volume, size); + + if (!path || !path[0]) return FALSE; + + if (size >= sizeof(fmt) / sizeof(WCHAR)) + { + /* FIXME: will break when we support volume mounts */ + sprintfW( volume, fmt, tolowerW( path[0] ) - 'a' ); + ret = TRUE; + } + return ret; +} /*********************************************************************** * DefineDosDeviceW (KERNEL32.@)
1
0
0
0
Samuel Lidén Borell : kernel32: Add SetTermsrvAppInstallMode stub.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: a7c9970762780b16ee1ecfef4f330b518aef06c6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a7c9970762780b16ee1ecfef4…
Author: Samuel Lidén Borell <samuellb(a)bredband.net> Date: Mon Jan 8 16:16:45 2007 +0100 kernel32: Add SetTermsrvAppInstallMode stub. --- dlls/kernel32/kernel32.spec | 2 +- dlls/kernel32/version.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 903557f..fa52d1b 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -1024,7 +1024,7 @@ @ stdcall SetSystemTimeAdjustment(long long) @ stdcall SetTapeParameters(ptr long ptr) @ stdcall SetTapePosition(ptr long long long long long) -@ stub SetTermsrvAppInstallMode +@ stdcall SetTermsrvAppInstallMode(long) @ stdcall SetThreadAffinityMask(long long) @ stdcall SetThreadContext(long ptr) @ stdcall SetThreadExecutionState(long) diff --git a/dlls/kernel32/version.c b/dlls/kernel32/version.c index 811c426..3160983 100644 --- a/dlls/kernel32/version.c +++ b/dlls/kernel32/version.c @@ -374,3 +374,19 @@ BOOL WINAPI TermsrvAppInstallMode(void) FIXME("stub\n"); return FALSE; } + +/*********************************************************************** + * SetTermsrvAppInstallMode (KERNEL32.@) + * + * This function is said to switch between the INSTALL (TRUE) or + * EXECUTE (FALSE) terminal server modes. + * + * This function always returns zero on WinXP Home so it's probably + * safe to return that value in most cases. However, if a terminal + * server is running it will probably return something else. + */ +DWORD WINAPI SetTermsrvAppInstallMode(BOOL bInstallMode) +{ + FIXME("(%d): stub\n", bInstallMode); + return 0; +}
1
0
0
0
Mike McCormack : kernel32: Implement EndUpdateResource for the case existing resources are deleted.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 4d72d7897f0b5b961be6f1adfd22a3d53cc20a94 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4d72d7897f0b5b961be6f1adf…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 8 18:08:15 2007 +0900 kernel32: Implement EndUpdateResource for the case existing resources are deleted. --- dlls/kernel32/resource.c | 433 +++++++++++++++++++++++++++++++++++++++- dlls/kernel32/tests/resource.c | 21 ++- 2 files changed, 439 insertions(+), 15 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4d72d7897f0b5b961be6f…
1
0
0
0
Patrik Stridvall : dxguid: Add the rmxfguid.h header and export the GUIDs.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 918152734c6fb799e47aedc2dfd38dbc4f946959 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=918152734c6fb799e47aedc2d…
Author: Patrik Stridvall <patrik(a)stridvall.se> Date: Mon Jan 8 00:47:04 2007 +0100 dxguid: Add the rmxfguid.h header and export the GUIDs. --- dlls/dxguid/dxguid.c | 1 + include/Makefile.in | 1 + include/rmxfguid.h | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 0 deletions(-) diff --git a/dlls/dxguid/dxguid.c b/dlls/dxguid/dxguid.c index 82bae2a..c222c7c 100644 --- a/dlls/dxguid/dxguid.c +++ b/dlls/dxguid/dxguid.c @@ -45,3 +45,4 @@ #include "ddrawi.h" #include "dxfile.h" #include "d3drm.h" +#include "rmxfguid.h" diff --git a/include/Makefile.in b/include/Makefile.in index cb1fe5c..36257c4 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -249,6 +249,7 @@ WINDOWS_INCLUDES = \ reason.h \ regstr.h \ richedit.h \ + rmxfguid.h \ rpc.h \ rpcdce.h \ rpcdcep.h \ diff --git a/include/rmxfguid.h b/include/rmxfguid.h new file mode 100644 index 0000000..da36e00 --- /dev/null +++ b/include/rmxfguid.h @@ -0,0 +1,130 @@ +/* + * Copyright (C) 2007 Patrik Stridvall + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __WINE_RMXFGUID_H +#define __WINE_RMXFGUID_H + +/***************************************************************************** + * Define GUIDs + */ + +DEFINE_GUID(TID_D3DRMAnimation, 0x3d82ab4f, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMAnimationKey, 0x10dd46a8, 0x775b, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMAnimationOptions, 0xe2bf56c0, 0x840f, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMAnimationSet, 0x3d82ab50, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMAppData, 0xe5745280, 0xb24f, 0x11cf, 0x9d, 0xd5, 0x00, 0xaa, 0x00, 0xa7, 0x1a, 0x2f); + +DEFINE_GUID(TID_D3DRMBoolean, 0x537da6a0, 0xca37, 0x11d0, 0x94, 0x1c, 0x00, 0x80, 0xc8, 0x0c, 0xfa, 0x7b); + +DEFINE_GUID(TID_D3DRMBoolean2d, 0x4885ae63, 0x78e8, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMCamera, 0x3d82ab51, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMColorRGB, 0xd3e16e81, 0x7835, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMColorRGBA, 0x35ff44e0, 0x6c7c, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMCoords2d, 0xf6f23f44, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMExternalVisual, 0x98116aa0, 0xbdba, 0x11d1, 0x82, 0xc0, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x71); + +DEFINE_GUID(TID_D3DRMFloatKeys, 0x10dd46a9, 0x775b, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMFrame, 0x3d82ab46, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMFramePosition, 0xe2bf56c1, 0x840f, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMFrameRotation, 0xe2bf56c3, 0x840f, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMFrameTransformMatrix, 0xf6f23f41, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMFrameVelocity, 0xe2bf56c2, 0x840f, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMGuid, 0xa42790e0, 0x7810, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMIndexedColor, 0x1630b820, 0x7842, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMInfo, 0x2b957100, 0x9e9a, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMInlineData, 0x3a23eea0, 0x94b1, 0x11d0, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMLight, 0x3d82ab4a, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMLightAttenuation, 0xa8a98ba0, 0xc5e5, 0x11cf, 0xb9, 0x41, 0x00, 0x80, 0xc8, 0x0c, 0xfa, 0x7b); + +DEFINE_GUID(TID_D3DRMLightPenumbra, 0xaed22741, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x00, 0xaa, 0x00, 0xa7, 0x1a, 0x2f); + +DEFINE_GUID(TID_D3DRMLightRange, 0xaed22742, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x00, 0xaa, 0x00, 0xa7, 0x1a, 0x2f); + +DEFINE_GUID(TID_D3DRMLightUmbra, 0xaed22740, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x00, 0xaa, 0x00, 0xa7, 0x1a, 0x2f); + +DEFINE_GUID(TID_D3DRMMaterial, 0x3d82ab4d, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMMaterialAmbientColor, 0x01411840, 0x7786, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialArray, 0x35ff44e1, 0x6c7c, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialDiffuseColor, 0x01411841, 0x7786, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialEmissiveColor, 0xd3e16e80, 0x7835, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialPower, 0x01411843, 0x7786, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialSpecularColor, 0x01411842, 0x7786, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMaterialWrap, 0x4885ae60, 0x78e8, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMatrix4x4, 0xf6f23f45, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMesh, 0x3d82ab44, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMMeshFace, 0x3d82ab5f, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMMeshFaceWraps, 0xed1ec5c0, 0xc0a8, 0x11d0, 0x94, 0x1c, 0x00, 0x80, 0xc8, 0x0c, 0xfa, 0x7b); + +DEFINE_GUID(TID_D3DRMMeshMaterialList, 0xf6f23f42, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMeshNormals, 0xf6f23f43, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMeshTextureCoords, 0xf6f23f40, 0x7686, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMMeshVertexColors, 0x1630b821, 0x7842, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMProgressiveMesh, 0x8a63c360, 0x997d, 0x11d0, 0x94, 0x1c, 0x00, 0x80, 0xc8, 0x0c, 0xfa, 0x7b); + +DEFINE_GUID(TID_D3DRMPropertyBag, 0x7f0f21e1, 0xbfe1, 0x11d1, 0x82, 0xc0, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x71); + +DEFINE_GUID(TID_D3DRMRightHanded, 0x7f5d5ea0, 0xd53a, 0x11d1, 0x82, 0xc0, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x71); + +DEFINE_GUID(TID_D3DRMStringProperty, 0x7f0f21e0, 0xbfe1, 0x11d1, 0x82, 0xc0, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x71); + +DEFINE_GUID(TID_D3DRMTextureFilename, 0xa42790e1, 0x7810, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMTextureReference, 0xa42790e2, 0x7810, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMTimedFloatKeys, 0xf406b180, 0x7b3b, 0x11cf, 0x8f, 0x52, 0x00, 0x40, 0x33, 0x35, 0x94, 0xa3); + +DEFINE_GUID(TID_D3DRMUrl, 0x3a23eea1, 0x94b1, 0x11d0, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +DEFINE_GUID(TID_D3DRMVector, 0x3d82ab5e, 0x62da, 0x11cf, 0xab, 0x39, 0x00, 0x20, 0xaf, 0x71, 0xe4, 0x33); + +#endif /* __WINE_RMXFGUID_H */
1
0
0
0
Patrik Stridvall : make_makefiles: Add *_crosstest.exe to .gitignore.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 8ef6b39c9f158f88caf71d677c85a2ec1d655615 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8ef6b39c9f158f88caf71d677…
Author: Patrik Stridvall <patrik(a)stridvall.se> Date: Mon Jan 8 00:12:25 2007 +0100 make_makefiles: Add *_crosstest.exe to .gitignore. --- .gitignore | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ tools/make_makefiles | 6 +++- 2 files changed, 59 insertions(+), 2 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=8ef6b39c9f158f88caf71…
1
0
0
0
Felix Nawothnig : treeview: Initialize iImage and iSelectedImage with zero.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 2eb171c1f559fcc79068e3e61789469a0281a74e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2eb171c1f559fcc79068e3e61…
Author: Felix Nawothnig <flexo(a)holycrap.org> Date: Tue Jan 9 08:03:39 2007 +0100 treeview: Initialize iImage and iSelectedImage with zero. --- dlls/comctl32/tests/treeview.c | 8 ++++++++ dlls/comctl32/treeview.c | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index adf0ea4..ba14dd6 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -70,6 +70,7 @@ static void IdentifyItem(HTREEITEM hItem static void FillRoot(void) { TVINSERTSTRUCTA ins; + TVITEM tvi; static CHAR root[] = "Root", child[] = "Child"; @@ -82,6 +83,13 @@ static void FillRoot(void) hRoot = TreeView_InsertItem(hTree, &ins); assert(hRoot); + /* UMLPad 1.15 depends on this being not -1 (I_IMAGECALLBACK) */ + tvi.hItem = hRoot; + tvi.mask = TVIF_IMAGE | TVIF_SELECTEDIMAGE; + SendMessage( hTree, TVM_GETITEM, 0, (LPARAM)&tvi ); + ok(tvi.iImage == 0, "tvi.iImage=%d\n", tvi.iImage); + ok(tvi.iSelectedImage == 0, "tvi.iSelectedImage=%d\n", tvi.iSelectedImage); + AddItem('B'); ins.hParent = hRoot; ins.hInsertAfter = TVI_FIRST; diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index aefce78..4fb2a32 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -1010,8 +1010,12 @@ TREEVIEW_AllocateItem(TREEVIEW_INFO *inf if (!newItem) return NULL; - newItem->iImage = -1; - newItem->iSelectedImage = -1; + /* I_IMAGENONE would make more sense but this is neither what is + * documented (MSDN doesn't specify) nor what Windows actually does + * (it sets it to zero)... and I can so imagine an application using + * inc/dec to toggle the images. */ + newItem->iImage = 0; + newItem->iSelectedImage = 0; if (DPA_InsertPtr(infoPtr->items, INT_MAX, newItem) == -1) {
1
0
0
0
Ken Thomases : kernel32: Don't release preferred_locales until we' re done with its members.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 5a220321dfd96ded46ee95d9ae971f552ba5ffe0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5a220321dfd96ded46ee95d9a…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Jan 8 22:28:07 2007 -0600 kernel32: Don't release preferred_locales until we're done with its members. --- dlls/kernel32/locale.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index fcb8f18..845234d 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -2842,12 +2842,8 @@ void LOCALE_Init(void) */ all_locales = CFLocaleCopyAvailableLocaleIdentifiers(); preferred_locales = CFBundleCopyLocalizationsForPreferences( all_locales, NULL ); - if (preferred_locales) - { - if (CFArrayGetCount( preferred_locales )) - user_language_string_ref = CFArrayGetValueAtIndex( preferred_locales, 0 ); - CFRelease( preferred_locales ); - } + if (preferred_locales && CFArrayGetCount( preferred_locales )) + user_language_string_ref = CFArrayGetValueAtIndex( preferred_locales, 0 ); CFRelease( all_locales ); #endif /* __APPLE__ */ @@ -2868,6 +2864,8 @@ void LOCALE_Init(void) lcid_LC_MESSAGES = locale_name.lcid; TRACE( "setting lcid_LC_MESSAGES to '%s'\n", user_locale ); } + if (preferred_locales) + CFRelease( preferred_locales ); #endif NtSetDefaultUILanguage( LANGIDFROMLCID(lcid_LC_MESSAGES) );
1
0
0
0
Michael Stefaniuc : janitorial: Remove stray '\' at end of lines.
by Alexandre Julliard
09 Jan '07
09 Jan '07
Module: wine Branch: master Commit: 22684cc767825299a151eb9f6cb26a366510a496 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22684cc767825299a151eb9f6…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Jan 9 00:39:49 2007 +0100 janitorial: Remove stray '\' at end of lines. --- dlls/avifil32/tmpfile.c | 2 +- dlls/dmband/dmutils.c | 2 +- dlls/dmime/dmutils.c | 2 +- dlls/dmloader/debug.c | 2 +- dlls/dmstyle/dmutils.c | 2 +- dlls/dmusic/collection.c | 2 +- dlls/dplayx/dplayx_messages.c | 2 +- dlls/kernel32/cpu.c | 2 +- dlls/msrle32/msrle32.c | 4 ++-- dlls/ntdll/tests/om.c | 2 +- dlls/user32/tests/msg.c | 6 +++--- programs/oleview/oleview.c | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dlls/avifil32/tmpfile.c b/dlls/avifil32/tmpfile.c index 6d6c5d1..2dfcc95 100644 --- a/dlls/avifil32/tmpfile.c +++ b/dlls/avifil32/tmpfile.c @@ -112,7 +112,7 @@ PAVIFILE AVIFILE_CreateAVITempFile(int n { register DWORD tmp; - tmp = MulDiv(AVIStreamSampleToTime(ppStreams[i], sInfo.dwLength), \ + tmp = MulDiv(AVIStreamSampleToTime(ppStreams[i], sInfo.dwLength), tmpFile->fInfo.dwScale, tmpFile->fInfo.dwRate * 1000); if (tmpFile->fInfo.dwLength < tmp) tmpFile->fInfo.dwLength = tmp; diff --git a/dlls/dmband/dmutils.c b/dlls/dmband/dmutils.c index 64c9f5d..4c4ca43 100644 --- a/dlls/dmband/dmutils.c +++ b/dlls/dmband/dmutils.c @@ -123,7 +123,7 @@ static const char *debugstr_filetime (LP FileTimeToSystemTime (time, &sysTime); - return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", \ + return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", sysTime.wDay, debugstr_month(sysTime.wMonth), sysTime.wYear, sysTime.wHour, sysTime.wMinute, sysTime.wSecond); } diff --git a/dlls/dmime/dmutils.c b/dlls/dmime/dmutils.c index 84bf8bb..7078b21 100644 --- a/dlls/dmime/dmutils.c +++ b/dlls/dmime/dmutils.c @@ -276,7 +276,7 @@ static const char *debugstr_filetime (LP FileTimeToSystemTime (time, &sysTime); - return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", \ + return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", sysTime.wDay, debugstr_month(sysTime.wMonth), sysTime.wYear, sysTime.wHour, sysTime.wMinute, sysTime.wSecond); } diff --git a/dlls/dmloader/debug.c b/dlls/dmloader/debug.c index b71376f..7dba67d 100644 --- a/dlls/dmloader/debug.c +++ b/dlls/dmloader/debug.c @@ -90,7 +90,7 @@ const char *debugstr_filetime (LPFILETIM FileTimeToSystemTime (time, &sysTime); - return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", \ + return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", sysTime.wDay, debugstr_month(sysTime.wMonth), sysTime.wYear, sysTime.wHour, sysTime.wMinute, sysTime.wSecond); } diff --git a/dlls/dmstyle/dmutils.c b/dlls/dmstyle/dmutils.c index c732b56..d894015 100644 --- a/dlls/dmstyle/dmutils.c +++ b/dlls/dmstyle/dmutils.c @@ -290,7 +290,7 @@ static const char *debugstr_filetime (LP FileTimeToSystemTime (time, &sysTime); - return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", \ + return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'", sysTime.wDay, debugstr_month(sysTime.wMonth), sysTime.wYear, sysTime.wHour, sysTime.wMinute, sysTime.wSecond); } diff --git a/dlls/dmusic/collection.c b/dlls/dmusic/collection.c index 82c1622..e8d52fb 100644 --- a/dlls/dmusic/collection.c +++ b/dlls/dmusic/collection.c @@ -715,7 +715,7 @@ static HRESULT WINAPI IDirectMusicCollec if (This->pDesc->dwValidData & DMUS_OBJ_OBJECT) TRACE(" - GUID = %s\n", debugstr_dmguid(&This->pDesc->guidObject)); if (This->pDesc->dwValidData & DMUS_OBJ_VERSION) - TRACE(" - Version = %i,%i,%i,%i\n", (This->pDesc->vVersion.dwVersionMS >> 8) & 0x0000FFFF, This->pDesc->vVersion.dwVersionMS & 0x0000FFFF, \ + TRACE(" - Version = %i,%i,%i,%i\n", (This->pDesc->vVersion.dwVersionMS >> 8) & 0x0000FFFF, This->pDesc->vVersion.dwVersionMS & 0x0000FFFF, (This->pDesc->vVersion.dwVersionLS >> 8) & 0x0000FFFF, This->pDesc->vVersion.dwVersionLS & 0x0000FFFF); if (This->pDesc->dwValidData & DMUS_OBJ_NAME) TRACE(" - Name = %s\n", debugstr_w(This->pDesc->wszName)); diff --git a/dlls/dplayx/dplayx_messages.c b/dlls/dplayx/dplayx_messages.c index 5677b20..b47928b 100644 --- a/dlls/dplayx/dplayx_messages.c +++ b/dlls/dplayx/dplayx_messages.c @@ -437,7 +437,7 @@ void DP_MSG_ReplyReceived( IDirectPlay2A * avoid problems. */ EnterCriticalSection( &This->unk->DP_lock ); - DPQ_REMOVE_ENTRY( This->dp2->replysExpected, replysExpected, replyExpected.wExpectedReply,\ + DPQ_REMOVE_ENTRY( This->dp2->replysExpected, replysExpected, replyExpected.wExpectedReply, ==, wCommandId, lpReplyList ); LeaveCriticalSection( &This->unk->DP_lock ); diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c index 2d9b13e..9f21132 100644 --- a/dlls/kernel32/cpu.c +++ b/dlls/kernel32/cpu.c @@ -618,7 +618,7 @@ VOID WINAPI GetSystemInfo( cachedsi.wProcessorLevel = 6; break; default: - FIXME("unknown FreeBSD cpu family %d, please report! (-> setting to 386)\n", \ + FIXME("unknown FreeBSD cpu family %d, please report! (-> setting to 386)\n", (regs2[0] >> 8)&0xf); break; } diff --git a/dlls/msrle32/msrle32.c b/dlls/msrle32/msrle32.c index c1e5463..96a0807 100644 --- a/dlls/msrle32/msrle32.c +++ b/dlls/msrle32/msrle32.c @@ -101,12 +101,12 @@ static BOOL isSupportedMRLE(LPCBITMAPINF /* pre-conditions */ assert(lpbi != NULL); - if (lpbi->biSize < sizeof(BITMAPINFOHEADER) || \ + if (lpbi->biSize < sizeof(BITMAPINFOHEADER) || lpbi->biPlanes != 1) return FALSE; if (lpbi->biCompression == BI_RLE4) { - if (lpbi->biBitCount != 4 || \ + if (lpbi->biBitCount != 4 || (lpbi->biWidth % 2) != 0) return FALSE; } else if (lpbi->biCompression == BI_RLE8) { diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c index e2c5f6c..557ee41 100644 --- a/dlls/ntdll/tests/om.c +++ b/dlls/ntdll/tests/om.c @@ -333,7 +333,7 @@ void test_directory(void) /* Can't use symlinks as a directory */ pRtlCreateUnicodeStringFromAsciiz(&str, "\\BaseNamedObjects\\Local"); InitializeObjectAttributes(&attr, &str, 0, 0, NULL); - status = pNtOpenSymbolicLinkObject(&dir, SYMBOLIC_LINK_QUERY, &attr);\ + status = pNtOpenSymbolicLinkObject(&dir, SYMBOLIC_LINK_QUERY, &attr); ok(status == STATUS_SUCCESS, "Failed to open SymbolicLink(%08x)\n", status); pRtlFreeUnicodeString(&str); InitializeObjectAttributes(&attr, &str, 0, dir, NULL); diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 0933c56..7e63e73 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -8231,17 +8231,17 @@ static void test_TrackMouseEvent(void) ok(ret, "TrackMouseEvent(TME_HOVER | TME_CANCEL) error %d\n", GetLastError()) default_hover_time = 0xdeadbeef; - SetLastError(0xdeadbeef); \ + SetLastError(0xdeadbeef); ret = SystemParametersInfo(SPI_GETMOUSEHOVERTIME, 0, &default_hover_time, 0); ok(ret, "SystemParametersInfo(SPI_GETMOUSEHOVERTIME) error %u\n", GetLastError()); if (!ret) default_hover_time = 400; trace("SPI_GETMOUSEHOVERTIME returned %u ms\n", default_hover_time); - SetLastError(0xdeadbeef); \ + SetLastError(0xdeadbeef); ret = SystemParametersInfo(SPI_GETMOUSEHOVERWIDTH, 0, &hover_width, 0); ok(ret, "SystemParametersInfo(SPI_GETMOUSEHOVERWIDTH) error %u\n", GetLastError()); if (!ret) hover_width = 4; - SetLastError(0xdeadbeef); \ + SetLastError(0xdeadbeef); ret = SystemParametersInfo(SPI_GETMOUSEHOVERHEIGHT, 0, &hover_height, 0); ok(ret, "SystemParametersInfo(SPI_GETMOUSEHOVERHEIGHT) error %u\n", GetLastError()); if (!ret) hover_height = 4; diff --git a/programs/oleview/oleview.c b/programs/oleview/oleview.c index 88ce725..b66c5a1 100644 --- a/programs/oleview/oleview.c +++ b/programs/oleview/oleview.c @@ -380,7 +380,7 @@ int MenuCommand(WPARAM wParam, HWND hWnd memset(&si, 0, sizeof(si)); si.cb = sizeof(si); - CreateProcess(NULL, wszRegEdit, NULL, NULL, FALSE, 0,\ + CreateProcess(NULL, wszRegEdit, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); CloseHandle(pi.hProcess); CloseHandle(pi.hThread);
1
0
0
0
← Newer
1
...
54
55
56
57
58
59
60
...
90
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Results per page:
10
25
50
100
200