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 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1348 discussions
Start a n
N
ew thread
Florian Köberle : user32: Fix thick child minTrack and size.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: a50deff4bedd34e4bc82706e75507fceef8750ab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a50deff4bedd34e4bc82706e7…
Author: Florian Köberle <florian(a)fkoeberle.de> Date: Sat Jan 24 18:06:39 2009 +0100 user32: Fix thick child minTrack and size. --- dlls/user32/tests/win.c | 36 ++++++++---------------------------- dlls/user32/winpos.c | 12 ++++++++++-- 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 4e4b80d..13534ab 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5282,20 +5282,11 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM } actualMinTrackX = minmax->ptMinTrackSize.x; actualMinTrackY = minmax->ptMinTrackSize.y; - if (!(test_thick_child_style & (WS_DLGFRAME | WS_BORDER))) { - todo_wine - ok(actualMinTrackX == expectedMinTrackX && actualMinTrackY == expectedMinTrackY, - "expected minTrack %dx%d, actual minTrack %dx%d for %s\n", - expectedMinTrackX, expectedMinTrackY, actualMinTrackX, actualMinTrackY, - test_thick_child_name); - } - else - { - ok(actualMinTrackX == expectedMinTrackX && actualMinTrackY == expectedMinTrackY, - "expected minTrack %dx%d, actual minTrack %dx%d for %s\n", - expectedMinTrackX, expectedMinTrackY, actualMinTrackX, actualMinTrackY, - test_thick_child_name); - } + + ok(actualMinTrackX == expectedMinTrackX && actualMinTrackY == expectedMinTrackY, + "expected minTrack %dx%d, actual minTrack %dx%d for %s\n", + expectedMinTrackX, expectedMinTrackY, actualMinTrackX, actualMinTrackY, + test_thick_child_name); actualMaxTrackX = minmax->ptMaxTrackSize.x; actualMaxTrackY = minmax->ptMaxTrackSize.y; @@ -5453,20 +5444,9 @@ static void test_thick_child_size(HWND parentWindow) expectedHeight = -2 * adjustedParentRect.top; } - if (!(test_thick_child_style & (WS_DLGFRAME | WS_BORDER))) - { - todo_wine - ok((childWidth == expectedWidth) && (childHeight == expectedHeight), - "size of window (%s) is wrong: expected size %dx%d != actual size %dx%d\n", - test_thick_child_name, expectedWidth, expectedHeight, childWidth, childHeight); - } - else - { - ok((childWidth == expectedWidth) && (childHeight == expectedHeight), - "size of window (%s) is wrong: expected size %dx%d != actual size %dx%d\n", - test_thick_child_name, expectedWidth, expectedHeight, childWidth, childHeight); - } - + ok((childWidth == expectedWidth) && (childHeight == expectedHeight), + "size of window (%s) is wrong: expected size %dx%d != actual size %dx%d\n", + test_thick_child_name, expectedWidth, expectedHeight, childWidth, childHeight); SetLastError(0xdeadbeef); success = DestroyWindow(childWindow); diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index c1da249..f758514 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -678,8 +678,16 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, MinMax.ptMaxSize.x = rc.right - rc.left; MinMax.ptMaxSize.y = rc.bottom - rc.top; - MinMax.ptMinTrackSize.x = GetSystemMetrics(SM_CXMINTRACK); - MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); + if (style & (WS_DLGFRAME | WS_BORDER)) + { + MinMax.ptMinTrackSize.x = GetSystemMetrics(SM_CXMINTRACK); + MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); + } + else + { + MinMax.ptMinTrackSize.x = -2 * rc.left; + MinMax.ptMinTrackSize.y = -2 * rc.top; + } MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK); MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK); xinc = -rc.left;
1
0
0
0
Florian Köberle : user32: Fix maxPosition of thick child windows.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: ce119daf3e007791e121b6a2f6075f676cc2ba39 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce119daf3e007791e121b6a2f…
Author: Florian Köberle <florian(a)fkoeberle.de> Date: Sat Jan 24 18:06:38 2009 +0100 user32: Fix maxPosition of thick child windows. --- dlls/user32/tests/win.c | 7 +++---- dlls/user32/winpos.c | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 6843f70..4e4b80d 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5321,10 +5321,9 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM expectedPosY = rect.top; actualPosX = minmax->ptMaxPosition.x; actualPosY = minmax->ptMaxPosition.y; - todo_wine - ok(actualPosX == expectedPosX && actualPosY == expectedPosY, - "expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n", - expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name); + ok(actualPosX == expectedPosX && actualPosY == expectedPosY, + "expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n", + expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name); break; } diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index 6317005..c1da249 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -682,8 +682,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK); MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK); - - xinc = yinc = 0; + xinc = -rc.left; + yinc = -rc.top; } else {
1
0
0
0
Florian Köberle : user32/tests: Use AdjustWindowRectEx to calculate minTrack and maxPosition.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: dc1a7113b57277679fba6a1922861fa4c1de36d1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc1a7113b57277679fba6a192…
Author: Florian Köberle <florian(a)fkoeberle.de> Date: Sat Jan 24 18:06:37 2009 +0100 user32/tests: Use AdjustWindowRectEx to calculate minTrack and maxPosition. --- dlls/user32/tests/win.c | 58 +++++++++++++++++----------------------------- 1 files changed, 22 insertions(+), 36 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index fb734aa..6843f70 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5228,31 +5228,6 @@ static void test_fullscreen(void) } static BOOL test_thick_child_got_minmax; - -static int getExpectedBorderSize(LONG style, LONG exStyle) -{ - int border; - if ((exStyle & (WS_EX_STATICEDGE|WS_EX_DLGMODALFRAME)) == - WS_EX_STATICEDGE) - { - border = 1; /* for the outer frame always present */ - } - else - { - border = 0; - if ((exStyle & WS_EX_DLGMODALFRAME) || - (style & (WS_THICKFRAME|WS_DLGFRAME))) border = 2; /* outer */ - } - if (style & WS_THICKFRAME) - border += ( GetSystemMetrics (SM_CXFRAME) - - GetSystemMetrics (SM_CXDLGFRAME)); /* The resize border */ - if ((style & (WS_BORDER|WS_DLGFRAME)) || - (exStyle & WS_EX_DLGMODALFRAME)) - border++; /* The other border */ - - return border; -} - static const char * test_thick_child_name; static LONG test_thick_child_style; static LONG test_thick_child_exStyle; @@ -5288,6 +5263,13 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM test_thick_child_got_minmax = TRUE; + + adjustedStyle = test_thick_child_style; + if ((adjustedStyle & WS_CAPTION) == WS_CAPTION) + adjustedStyle &= ~WS_BORDER; /* WS_CAPTION = WS_DLGFRAME | WS_BORDER */ + GetClientRect(GetParent(hwnd), &rect); + AdjustWindowRectEx(&rect, adjustedStyle, FALSE, test_thick_child_exStyle); + if (test_thick_child_style & (WS_DLGFRAME | WS_BORDER)) { expectedMinTrackX = GetSystemMetrics(SM_CXMINTRACK); @@ -5295,8 +5277,8 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM } else { - expectedMinTrackX = 2 * getExpectedBorderSize(test_thick_child_style, test_thick_child_exStyle); - expectedMinTrackY = 2 * getExpectedBorderSize(test_thick_child_style, test_thick_child_exStyle); + expectedMinTrackX = -2 * rect.left; + expectedMinTrackY = -2 * rect.top; } actualMinTrackX = minmax->ptMinTrackSize.x; actualMinTrackY = minmax->ptMinTrackSize.y; @@ -5324,11 +5306,6 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM expectedMaxTrackX, expectedMaxTrackY, actualMaxTrackX, actualMaxTrackY, test_thick_child_name); - adjustedStyle = test_thick_child_style; - if ((adjustedStyle & WS_CAPTION) == WS_CAPTION) - adjustedStyle &= ~WS_BORDER; /* WS_CAPTION = WS_DLGFRAME | WS_BORDER */ - GetClientRect(GetParent(hwnd), &rect); - AdjustWindowRectEx(&rect, adjustedStyle, FALSE, test_thick_child_exStyle); expectedMaxSizeX = rect.right - rect.left; expectedMaxSizeY = rect.bottom - rect.top; actualMaxSizeX = minmax->ptMaxSize.x; @@ -5340,8 +5317,8 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM test_thick_child_name); - expectedPosX = - getExpectedBorderSize(test_thick_child_style, test_thick_child_exStyle); - expectedPosY = expectedPosX; + expectedPosX = rect.left; + expectedPosY = rect.top; actualPosX = minmax->ptMaxPosition.x; actualPosY = minmax->ptMaxPosition.y; todo_wine @@ -5361,6 +5338,7 @@ static void test_thick_child_size(HWND parentWindow) { BOOL success; RECT childRect; + RECT adjustedParentRect; HWND childWindow; LONG childWidth; LONG childHeight; @@ -5369,6 +5347,7 @@ static void test_thick_child_size(HWND parentWindow) WNDCLASSA cls; LPCTSTR className = "THICK_CHILD_CLASS"; int i; + LONG adjustedStyle; static const LONG styles[NUMBER_OF_THICK_CHILD_TESTS] = { WS_CHILD | WS_VISIBLE | WS_THICKFRAME, WS_CHILD | WS_VISIBLE | WS_THICKFRAME | WS_DLGFRAME, @@ -5457,6 +5436,13 @@ static void test_thick_child_size(HWND parentWindow) childWidth = childRect.right - childRect.left; childHeight = childRect.bottom - childRect.top; + adjustedStyle = styles[i]; + if ((adjustedStyle & WS_CAPTION) == WS_CAPTION) + adjustedStyle &= ~WS_BORDER; /* WS_CAPTION = WS_DLGFRAME | WS_BORDER */ + GetClientRect(GetParent(childWindow), &adjustedParentRect); + AdjustWindowRectEx(&adjustedParentRect, adjustedStyle, FALSE, test_thick_child_exStyle); + + if (test_thick_child_style & (WS_DLGFRAME | WS_BORDER)) { expectedWidth = GetSystemMetrics(SM_CXMINTRACK); @@ -5464,8 +5450,8 @@ static void test_thick_child_size(HWND parentWindow) } else { - expectedWidth = 2 * getExpectedBorderSize(test_thick_child_style, test_thick_child_exStyle); - expectedHeight = 2 * getExpectedBorderSize(test_thick_child_style, test_thick_child_exStyle); + expectedWidth = -2 * adjustedParentRect.left; + expectedHeight = -2 * adjustedParentRect.top; } if (!(test_thick_child_style & (WS_DLGFRAME | WS_BORDER)))
1
0
0
0
Nikolay Sivov : quartz: Fix NULL pointer dereference (Coverity).
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: 5ea119a3d0c1f823f2ee0be7f40b465f772e73ca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5ea119a3d0c1f823f2ee0be7f…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Tue Jan 27 04:05:00 2009 +0300 quartz: Fix NULL pointer dereference (Coverity). --- dlls/quartz/control.c | 4 ++-- dlls/quartz/tests/filtergraph.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index 36a610e..d14e221 100644 --- a/dlls/quartz/control.c +++ b/dlls/quartz/control.c @@ -591,9 +591,9 @@ HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * p This->llCurrent = llNewCurrent; This->llStop = llNewStop; - if (dwCurrentFlags & AM_SEEKING_ReturnTime) + if (pCurrent && (dwCurrentFlags & AM_SEEKING_ReturnTime)) *pCurrent = llNewCurrent; - if (dwStopFlags & AM_SEEKING_ReturnTime) + if (pStop && (dwStopFlags & AM_SEEKING_ReturnTime)) *pStop = llNewStop; ForwardCmdSeek(This->crst, This->pUserData, fwd_setposition, &args); diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index 6f9e4c8..2e5fdc4 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -272,6 +272,11 @@ static void test_mediacontrol(void) ok(hr == S_OK, "GetCurrentPosition failed: %08x\n", hr); ok(pos == 0, "Position != 0 (%x%08x)\n", (DWORD)(pos >> 32), (DWORD)pos); + hr = IMediaSeeking_SetPositions(seeking, NULL, AM_SEEKING_ReturnTime, NULL, AM_SEEKING_NoPositioning); + ok(hr == S_OK, "SetPositions failed: %08x\n", hr); + hr = IMediaSeeking_SetPositions(seeking, NULL, AM_SEEKING_NoPositioning, NULL, AM_SEEKING_ReturnTime); + ok(hr == S_OK, "SetPositions failed: %08x\n", hr); + IMediaFilter_SetSyncSource(filter, NULL); pos = 0xdeadbeef; hr = IMediaSeeking_GetCurrentPosition(seeking, &pos);
1
0
0
0
Alexandre Julliard : kernel32/tests: Don' t hardcode C drive for SetCurrentDirectory tests.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: a79868e09d0f45d36f714a9adce2a517925ae017 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a79868e09d0f45d36f714a9ad…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jan 27 14:49:47 2009 +0100 kernel32/tests: Don't hardcode C drive for SetCurrentDirectory tests. Also handle the case where TMP and TEMP are not defined. --- dlls/kernel32/tests/path.c | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c index e8e6c1e..3985bcf 100644 --- a/dlls/kernel32/tests/path.c +++ b/dlls/kernel32/tests/path.c @@ -468,10 +468,10 @@ static void test_CurrentDirectoryA(CHAR *origdir, CHAR *newdir) /* change to root without a trailing backslash. The function call succeeds but the directory is not changed. */ - strcpy(tmpstr,"C:"); + sprintf(tmpstr, "%c:", newdir[0]); test_setdir(newdir,tmpstr,newdir,1,"check 10"); /* works however with a trailing backslash */ - strcpy(tmpstr,"C:\\"); + sprintf(tmpstr, "%c:\\", newdir[0]); test_setdir(newdir,tmpstr,NULL,1,"check 11"); } @@ -901,15 +901,18 @@ static void test_GetTempPath(void) char windir[MAX_PATH]; char buf[MAX_PATH]; - GetEnvironmentVariableA("TMP", save_TMP, sizeof(save_TMP)); + if (!GetEnvironmentVariableA("TMP", save_TMP, sizeof(save_TMP))) save_TMP[0] = 0; /* test default configuration */ trace("TMP=%s\n", save_TMP); - strcpy(buf,save_TMP); - if (buf[strlen(buf)-1]!='\\') - strcat(buf,"\\"); - test_GetTempPathA(buf); - test_GetTempPathW(buf); + if (save_TMP[0]) + { + strcpy(buf,save_TMP); + if (buf[strlen(buf)-1]!='\\') + strcat(buf,"\\"); + test_GetTempPathA(buf); + test_GetTempPathW(buf); + } /* TMP=C:\WINDOWS */ GetWindowsDirectoryA(windir, sizeof(windir)); @@ -1216,8 +1219,11 @@ static void test_drive_letter_case(void) ret = GetTempPath(sizeof(buf), buf); ok(ret, "GetTempPath error %u\n", GetLastError()); ok(ret < sizeof(buf), "buffer should be %u bytes\n", ret); - ok(buf[1] == ':', "expected buf[1] == ':' got %c\n", buf[1]); - ok(buf[strlen(buf)-1] == '\\', "Temporary path (%s) doesn't end in a slash\n", buf); + if (buf[0]) + { + ok(buf[1] == ':', "expected buf[1] == ':' got %c\n", buf[1]); + ok(buf[strlen(buf)-1] == '\\', "Temporary path (%s) doesn't end in a slash\n", buf); + } memset(buf, 0, sizeof(buf)); SetLastError(0xdeadbeef);
1
0
0
0
Alexandre Julliard : user32/tests: Accept DISP_CHANGE_RESTART also for tests expected to fail.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: e55a691dedf3cdd32f0faa46ce097e50de08f68a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e55a691dedf3cdd32f0faa46c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jan 27 14:38:23 2009 +0100 user32/tests: Accept DISP_CHANGE_RESTART also for tests expected to fail. --- dlls/user32/tests/monitor.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/user32/tests/monitor.c b/dlls/user32/tests/monitor.c index 25c8867..944e49b 100644 --- a/dlls/user32/tests/monitor.c +++ b/dlls/user32/tests/monitor.c @@ -241,7 +241,8 @@ static void test_ChangeDisplaySettingsEx(void) res = pChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL); ok(vid_modes_test[i].must_succeed ? (res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART) : - (res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_BADMODE || res == DISP_CHANGE_BADPARAM), + (res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART || + res == DISP_CHANGE_BADMODE || res == DISP_CHANGE_BADPARAM), "Unexpected ChangeDisplaySettingsEx() return code for resolution[%d]: %d\n", i, res); if (res == DISP_CHANGE_SUCCESSFUL)
1
0
0
0
Hans Leidekker : msvcrt: Add a test for _vsnwprintf.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: 120120e37ea470fcac13e83ff7a3399be2ef5e99 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=120120e37ea470fcac13e83ff…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Tue Jan 27 11:58:49 2009 +0100 msvcrt: Add a test for _vsnwprintf. --- dlls/msvcrt/tests/printf.c | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c index 9d31f86..d25734e 100644 --- a/dlls/msvcrt/tests/printf.c +++ b/dlls/msvcrt/tests/printf.c @@ -27,6 +27,10 @@ #include <stdio.h> +#include "windef.h" +#include "winbase.h" +#include "winnls.h" + #include "wine/test.h" static void test_sprintf( void ) @@ -694,10 +698,39 @@ static void test_fcvt(void) ok( 0 == sign, "sign wrong\n"); } +static int _vsnwprintf_wrapper(wchar_t *str, size_t len, const wchar_t *format, ...) +{ + int ret; + __ms_va_list valist; + __ms_va_start(valist, format); + ret = _vsnwprintf(str, len, format, valist); + __ms_va_end(valist); + return ret; +} + +static void test_vsnwprintf(void) +{ + const wchar_t format[] = {'%','w','s','%','w','s','%','w','s',0}; + const wchar_t one[] = {'o','n','e',0}; + const wchar_t two[] = {'t','w','o',0}; + const wchar_t three[] = {'t','h','r','e','e',0}; + + int ret; + wchar_t str[32]; + char buf[32]; + + ret = _vsnwprintf_wrapper( str, sizeof(str)/sizeof(str[0]), format, one, two, three ); + + ok( ret == 11, "got %d expected 11\n", ret ); + WideCharToMultiByte( CP_ACP, 0, str, -1, buf, sizeof(buf), NULL, NULL ); + ok( !strcmp(buf, "onetwothree"), "got %s expected 'onetwothree'\n", buf ); +} + START_TEST(printf) { test_sprintf(); test_swprintf(); test_snprintf(); test_fcvt(); + test_vsnwprintf(); }
1
0
0
0
Hans Leidekker : msi: Add stub implementations of MsiSourceListClearSourceA /W.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: 8fec17b5ad62c533f149c1eeeda4dde1d52434ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8fec17b5ad62c533f149c1eee…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Tue Jan 27 11:58:19 2009 +0100 msi: Add stub implementations of MsiSourceListClearSourceA/W. --- dlls/msi/msi.spec | 4 ++-- dlls/msi/source.c | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec index 017fdbe..902e5f8 100644 --- a/dlls/msi/msi.spec +++ b/dlls/msi/msi.spec @@ -250,8 +250,8 @@ 254 stub MsiDeterminePatchSequenceW 255 stdcall MsiSourceListAddSourceExA(str str long long str long) 256 stdcall MsiSourceListAddSourceExW(wstr wstr long long wstr long) -257 stub MsiSourceListClearSourceA -258 stub MsiSourceListClearSourceW +257 stdcall MsiSourceListClearSourceA(str str long long str) +258 stdcall MsiSourceListClearSourceW(wstr wstr long long wstr) 259 stub MsiSourceListClearAllExA 260 stub MsiSourceListClearAllExW 261 stub MsiSourceListForceResolutionExA diff --git a/dlls/msi/source.c b/dlls/msi/source.c index e8e4a11..8cdaf40 100644 --- a/dlls/msi/source.c +++ b/dlls/msi/source.c @@ -1314,3 +1314,27 @@ UINT WINAPI MsiSourceListClearAllW( LPCWSTR szProduct, LPCWSTR szUserName, DWORD FIXME("(%s %s %d)\n", debugstr_w(szProduct), debugstr_w(szUserName), dwReserved); return ERROR_SUCCESS; } + +/****************************************************************** + * MsiSourceListClearSourceA (MSI.@) + */ +UINT WINAPI MsiSourceListClearSourceA(LPCSTR szProductCodeOrPatchCode, LPCSTR szUserSid, + MSIINSTALLCONTEXT dwContext, DWORD dwOptions, + LPCSTR szSource) +{ + FIXME("(%s %s %x %x %s)\n", debugstr_a(szProductCodeOrPatchCode), debugstr_a(szUserSid), + dwContext, dwOptions, debugstr_a(szSource)); + return ERROR_SUCCESS; +} + +/****************************************************************** + * MsiSourceListClearSourceW (MSI.@) + */ +UINT WINAPI MsiSourceListClearSourceW(LPCWSTR szProductCodeOrPatchCode, LPCWSTR szUserSid, + MSIINSTALLCONTEXT dwContext, DWORD dwOptions, + LPCWSTR szSource) +{ + FIXME("(%s %s %x %x %s)\n", debugstr_w(szProductCodeOrPatchCode), debugstr_w(szUserSid), + dwContext, dwOptions, debugstr_w(szSource)); + return ERROR_SUCCESS; +}
1
0
0
0
Michael Stefaniuc : gphoto.ds: Remove superfluous pointer casts.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: 2c5da7de49664621d0efeb1f696b5ebc9b9e6166 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2c5da7de49664621d0efeb1f6…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Jan 27 11:36:42 2009 +0100 gphoto.ds: Remove superfluous pointer casts. --- dlls/gphoto2.ds/ds_image.c | 2 +- dlls/gphoto2.ds/ui.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gphoto2.ds/ds_image.c b/dlls/gphoto2.ds/ds_image.c index 8dbba1d..ae6e115 100644 --- a/dlls/gphoto2.ds/ds_image.c +++ b/dlls/gphoto2.ds/ds_image.c @@ -397,7 +397,7 @@ TW_UINT16 GPHOTO2_ImageNativeXferGet (pTW_IDENTITY pOrigin, * will likely crash after calling. * * Reason is that there is a lot of example code that does: - * bmpinfo = (LPBITMAPINFOHEADER)GlobalLock(hBITMAP); ... pointer access to bmpinfo + * bmpinfo = GlobalLock(hBITMAP); ... pointer access to bmpinfo * * Our current HBITMAP handles do not support getting GlobalLocked -> App Crash * diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c index 40afb9e..b769a6e 100644 --- a/dlls/gphoto2.ds/ui.c +++ b/dlls/gphoto2.ds/ui.c @@ -133,7 +133,7 @@ static void PopulateImageList(HIMAGELIST *iList, HWND list) #else bitmap = 0; #endif - GetObjectA(bitmap,sizeof(BITMAP),(LPVOID)&bmpInfo); + GetObjectA(bitmap,sizeof(BITMAP),&bmpInfo); if (*iList == 0) {
1
0
0
0
Michael Stefaniuc : localspl: Remove superfluous pointer casts.
by Alexandre Julliard
27 Jan '09
27 Jan '09
Module: wine Branch: master Commit: 56f57693647974fbe9e7c69f185b0cd302c0fcd7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=56f57693647974fbe9e7c69f1…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Jan 27 11:37:19 2009 +0100 localspl: Remove superfluous pointer casts. --- dlls/localspl/localmon.c | 8 ++++---- dlls/localspl/tests/localmon.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c index ef35576..f4e1739 100644 --- a/dlls/localspl/localmon.c +++ b/dlls/localspl/localmon.c @@ -427,7 +427,7 @@ static BOOL WINAPI localmon_AddPortExW(LPWSTR pName, DWORD level, LPBYTE pBuffer */ static BOOL WINAPI localmon_ClosePort(HANDLE hPort) { - port_t * port = (port_t *) hPort; + port_t * port = hPort; TRACE("(%p)\n", port); EnterCriticalSection(&port_handles_cs); @@ -531,7 +531,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort) port->type = type; memcpy(port->nameW, pName, len); - *phPort = (HANDLE) port; + *phPort = port; EnterCriticalSection(&port_handles_cs); list_add_tail(&port_handles, &port->entry); @@ -556,7 +556,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort) */ static BOOL WINAPI localmon_XcvClosePort(HANDLE hXcv) { - xcv_t * xcv = (xcv_t *) hXcv; + xcv_t * xcv = hXcv; TRACE("(%p)\n", xcv); /* No checks are done in Windows */ @@ -744,7 +744,7 @@ static BOOL WINAPI localmon_XcvOpenPort(LPCWSTR pName, ACCESS_MASK GrantedAccess if (xcv) { xcv->GrantedAccess = GrantedAccess; memcpy(xcv->nameW, pName, len); - *phXcv = (HANDLE) xcv; + *phXcv = xcv; EnterCriticalSection(&xcv_handles_cs); list_add_tail(&xcv_handles, &xcv->entry); LeaveCriticalSection(&xcv_handles_cs); diff --git a/dlls/localspl/tests/localmon.c b/dlls/localspl/tests/localmon.c index 26eea89..23a3608 100644 --- a/dlls/localspl/tests/localmon.c +++ b/dlls/localspl/tests/localmon.c @@ -1347,7 +1347,7 @@ static void test_XcvOpenPort(void) #define GET_MONITOR_FUNC(name) \ if(numentries > 0) { \ numentries--; \ - p##name = (void *) pm->Monitor.pfn##name ; \ + p##name = pm->Monitor.pfn##name ; \ }
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
135
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Results per page:
10
25
50
100
200