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
October 2013
----- 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
757 discussions
Start a n
N
ew thread
Piotr Caban : comctl32: Add more TVS_CHECKBOXES flag tests.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: c4708bca338dd36bbc381ebfd04a65a4f8802a0a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c4708bca338dd36bbc381ebfd…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Oct 31 17:28:05 2013 +0100 comctl32: Add more TVS_CHECKBOXES flag tests. --- dlls/comctl32/tests/treeview.c | 57 +++++++++++++++++++++++++++++++++++---- 1 files changed, 51 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index 998cc83..24206d5 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -1842,12 +1842,6 @@ static void test_TVS_CHECKBOXES(void) DestroyWindow(hTree); /* the same, but initially created with TVS_CHECKBOXES */ - hTree = create_treeview_control(0); - fill_tree(hTree); - himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); - ok(himl == NULL, "got %p\n", himl); - DestroyWindow(hTree); - hTree = create_treeview_control(TVS_CHECKBOXES); fill_tree(hTree); himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); @@ -1903,6 +1897,57 @@ static void test_TVS_CHECKBOXES(void) ok(himl != NULL, "got %p\n", himl); DestroyWindow(hTree); + + /* check what happens if TVSIL_STATE image list is removed */ + hTree = create_treeview_control(0); + fill_tree(hTree); + himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); + ok(himl == NULL, "got %p\n", himl); + + SetWindowLongA(hTree, GWL_STYLE, GetWindowLongA(hTree, GWL_STYLE) | TVS_CHECKBOXES); + himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); + ok(himl != NULL, "got %p\n", himl); + + himl2 = (HIMAGELIST)SendMessageA(hTree, TVM_SETIMAGELIST, TVSIL_STATE, 0); + ok(himl2 == himl, "got %p\n", himl2); + + himl2 = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); + ok(himl2 == NULL, "got %p\n", himl2); + + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = INDEXTOSTATEIMAGEMASK(2); + item.stateMask = TVIS_STATEIMAGEMASK; + ret = SendMessageA(hTree, TVM_SETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = 0; + ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + ok(item.state == INDEXTOSTATEIMAGEMASK(2), "got 0x%x\n", item.state); + + while(GetMessageA(&msg, 0, 0, 0)) + { + TranslateMessage(&msg); + DispatchMessageA(&msg); + + if((msg.hwnd == hTree) && (msg.message == WM_PAINT)) + break; + } + + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = 0; + ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + ok(item.state == INDEXTOSTATEIMAGEMASK(1), "got 0x%x\n", item.state); + + himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); + ok(himl != NULL, "got %p\n", himl); + + DestroyWindow(hTree); } static void test_TVM_GETNEXTITEM(void)
1
0
0
0
Piotr Caban : comctl32: Initialize treeview checkboxes in WM_PAINT when TVS_CHECKBOXES was passed during control creation .
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 7b1ff882d1abd5a95a943840bfc322b28e4caca4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b1ff882d1abd5a95a943840b…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Oct 31 17:27:51 2013 +0100 comctl32: Initialize treeview checkboxes in WM_PAINT when TVS_CHECKBOXES was passed during control creation. --- dlls/comctl32/tests/treeview.c | 36 +++++++++++++++++++++++++++++++++++- dlls/comctl32/treeview.c | 3 --- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index d523c23..998cc83 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -1771,6 +1771,7 @@ static void test_TVS_CHECKBOXES(void) HWND hTree, hTree2; TVITEMA item; DWORD ret; + MSG msg; hTree = create_treeview_control(0); fill_tree(hTree); @@ -1850,7 +1851,7 @@ static void test_TVS_CHECKBOXES(void) hTree = create_treeview_control(TVS_CHECKBOXES); fill_tree(hTree); himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); - todo_wine ok(himl == NULL, "got %p\n", himl); + ok(himl == NULL, "got %p\n", himl); item.hItem = hRoot; item.mask = TVIF_STATE; @@ -1868,6 +1869,39 @@ static void test_TVS_CHECKBOXES(void) expect(TRUE, ret); ok(item.state == INDEXTOSTATEIMAGEMASK(1), "got 0x%x\n", item.state); + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = INDEXTOSTATEIMAGEMASK(2); + item.stateMask = TVIS_STATEIMAGEMASK; + ret = SendMessageA(hTree, TVM_SETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = 0; + ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + ok(item.state == INDEXTOSTATEIMAGEMASK(2), "got 0x%x\n", item.state); + + while(GetMessageA(&msg, 0, 0, 0)) + { + TranslateMessage(&msg); + DispatchMessageA(&msg); + + if((msg.hwnd == hTree) && (msg.message == WM_PAINT)) + break; + } + + item.hItem = hChild; + item.mask = TVIF_STATE; + item.state = 0; + ret = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item); + expect(TRUE, ret); + ok(item.state == INDEXTOSTATEIMAGEMASK(1), "got 0x%x\n", item.state); + + himl = (HIMAGELIST)SendMessageA(hTree, TVM_GETIMAGELIST, TVSIL_STATE, 0); + ok(himl != NULL, "got %p\n", himl); + DestroyWindow(hTree); } diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index ae69623..a885543 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -5137,9 +5137,6 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs) CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hwnd, 0, 0, 0); - if (infoPtr->dwStyle & TVS_CHECKBOXES) - TREEVIEW_InitCheckboxes(infoPtr); - /* Make sure actual scrollbar state is consistent with uInternalStatus */ ShowScrollBar(hwnd, SB_VERT, FALSE); ShowScrollBar(hwnd, SB_HORZ, FALSE);
1
0
0
0
Piotr Caban : comctl32: Initialize himlState list in TREEVIEW_Paint when TVS_CHECKBOXES flag is set .
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 40648ddfd53aef1ddcb9dc5000e4430a030061fe URL:
http://source.winehq.org/git/wine.git/?a=commit;h=40648ddfd53aef1ddcb9dc500…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Oct 31 17:27:40 2013 +0100 comctl32: Initialize himlState list in TREEVIEW_Paint when TVS_CHECKBOXES flag is set. --- dlls/comctl32/treeview.c | 123 +++++++++++++++++++++++++-------------------- 1 files changed, 68 insertions(+), 55 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index c73fb54..ae69623 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2943,6 +2943,62 @@ TREEVIEW_Invalidate(const TREEVIEW_INFO *infoPtr, const TREEVIEW_ITEM *item) InvalidateRect(infoPtr->hwnd, NULL, TRUE); } +static void +TREEVIEW_InitCheckboxes(TREEVIEW_INFO *infoPtr) +{ + RECT rc; + HBITMAP hbm, hbmOld; + HDC hdc, hdcScreen; + int nIndex; + + infoPtr->himlState = ImageList_Create(16, 16, ILC_COLOR | ILC_MASK, 3, 0); + + hdcScreen = GetDC(0); + + hdc = CreateCompatibleDC(hdcScreen); + hbm = CreateCompatibleBitmap(hdcScreen, 48, 16); + hbmOld = SelectObject(hdc, hbm); + + SetRect(&rc, 0, 0, 48, 16); + FillRect(hdc, &rc, (HBRUSH)(COLOR_WINDOW+1)); + + SetRect(&rc, 18, 2, 30, 14); + DrawFrameControl(hdc, &rc, DFC_BUTTON, + DFCS_BUTTONCHECK|DFCS_FLAT); + + SetRect(&rc, 34, 2, 46, 14); + DrawFrameControl(hdc, &rc, DFC_BUTTON, + DFCS_BUTTONCHECK|DFCS_FLAT|DFCS_CHECKED); + + SelectObject(hdc, hbmOld); + nIndex = ImageList_AddMasked(infoPtr->himlState, hbm, + comctl32_color.clrWindow); + TRACE("checkbox index %d\n", nIndex); + + DeleteObject(hbm); + DeleteDC(hdc); + ReleaseDC(0, hdcScreen); + + infoPtr->stateImageWidth = 16; + infoPtr->stateImageHeight = 16; +} + +static void +TREEVIEW_ResetImageStateIndex(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item) +{ + TREEVIEW_ITEM *child = item->firstChild; + + item->state &= ~TVIS_STATEIMAGEMASK; + item->state |= INDEXTOSTATEIMAGEMASK(1); + + while (child) + { + TREEVIEW_ITEM *next = child->nextSibling; + TREEVIEW_ResetImageStateIndex(infoPtr, child); + child = next; + } +} + static LRESULT TREEVIEW_Paint(TREEVIEW_INFO *infoPtr, HDC hdc_ref) { @@ -2952,6 +3008,17 @@ TREEVIEW_Paint(TREEVIEW_INFO *infoPtr, HDC hdc_ref) TRACE("(%p %p)\n", infoPtr, hdc_ref); + if ((infoPtr->dwStyle & TVS_CHECKBOXES) && !infoPtr->himlState) + { + TREEVIEW_InitCheckboxes(infoPtr); + TREEVIEW_ResetImageStateIndex(infoPtr, infoPtr->root); + + TREEVIEW_EndEditLabelNow(infoPtr, TRUE); + TREEVIEW_UpdateSubTree(infoPtr, infoPtr->root); + TREEVIEW_UpdateScrollBars(infoPtr); + TREEVIEW_Invalidate(infoPtr, NULL); + } + if (hdc_ref) { hdc = hdc_ref; @@ -4972,46 +5039,6 @@ TREEVIEW_MouseWheel(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam) /* Create/Destroy *******************************************************/ -static void -TREEVIEW_InitCheckboxes(TREEVIEW_INFO *infoPtr) -{ - RECT rc; - HBITMAP hbm, hbmOld; - HDC hdc, hdcScreen; - int nIndex; - - infoPtr->himlState = ImageList_Create(16, 16, ILC_COLOR | ILC_MASK, 3, 0); - - hdcScreen = GetDC(0); - - hdc = CreateCompatibleDC(hdcScreen); - hbm = CreateCompatibleBitmap(hdcScreen, 48, 16); - hbmOld = SelectObject(hdc, hbm); - - SetRect(&rc, 0, 0, 48, 16); - FillRect(hdc, &rc, (HBRUSH)(COLOR_WINDOW+1)); - - SetRect(&rc, 18, 2, 30, 14); - DrawFrameControl(hdc, &rc, DFC_BUTTON, - DFCS_BUTTONCHECK|DFCS_FLAT); - - SetRect(&rc, 34, 2, 46, 14); - DrawFrameControl(hdc, &rc, DFC_BUTTON, - DFCS_BUTTONCHECK|DFCS_FLAT|DFCS_CHECKED); - - SelectObject(hdc, hbmOld); - nIndex = ImageList_AddMasked(infoPtr->himlState, hbm, - comctl32_color.clrWindow); - TRACE("checkbox index %d\n", nIndex); - - DeleteObject(hbm); - DeleteDC(hdc); - ReleaseDC(0, hdcScreen); - - infoPtr->stateImageWidth = 16; - infoPtr->stateImageHeight = 16; -} - static LRESULT TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs) { @@ -5451,21 +5478,6 @@ TREEVIEW_Size(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam) return 0; } -static void TREEVIEW_ResetImageStateIndex(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item) -{ - TREEVIEW_ITEM *child = item->firstChild; - - item->state &= ~TVIS_STATEIMAGEMASK; - item->state |= INDEXTOSTATEIMAGEMASK(1); - - while (child) - { - TREEVIEW_ITEM *next = child->nextSibling; - TREEVIEW_ResetImageStateIndex(infoPtr, child); - child = next; - } -} - static LRESULT TREEVIEW_StyleChanged(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam) { @@ -5509,6 +5521,7 @@ TREEVIEW_StyleChanged(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam) infoPtr->dwStyle = dwNewStyle; } + TREEVIEW_EndEditLabelNow(infoPtr, TRUE); TREEVIEW_UpdateSubTree(infoPtr, infoPtr->root); TREEVIEW_UpdateScrollBars(infoPtr); TREEVIEW_Invalidate(infoPtr, NULL);
1
0
0
0
Dmitry Timoshkov : ntdll: NtReadFile should update io status block on EOF for a synchronous read.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 60ef62c8c2baf00ea335d604195fb1bceb87247e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=60ef62c8c2baf00ea335d6041…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Wed Oct 30 14:24:45 2013 +0900 ntdll: NtReadFile should update io status block on EOF for a synchronous read. --- dlls/ntdll/file.c | 10 +++++----- dlls/ntdll/tests/file.c | 15 +++------------ 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 9b05978..bd9516d 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -604,14 +604,14 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent, &needs_close, &type, &options ); if (status) return status; + async_read = !(options & (FILE_SYNCHRONOUS_IO_ALERT | FILE_SYNCHRONOUS_IO_NONALERT)); + if (!virtual_check_buffer_for_write( buffer, length )) { status = STATUS_ACCESS_VIOLATION; goto done; } - async_read = !(options & (FILE_SYNCHRONOUS_IO_ALERT | FILE_SYNCHRONOUS_IO_NONALERT)); - if (type == FD_TYPE_FILE) { if (async_read && (!offset || offset->QuadPart < 0)) @@ -765,14 +765,14 @@ done: err: if (needs_close) close( unix_handle ); - if (status == STATUS_SUCCESS) + if (status == STATUS_SUCCESS || (status == STATUS_END_OF_FILE && !async_read)) { io_status->u.Status = status; io_status->Information = total; TRACE("= SUCCESS (%u)\n", total); if (hEvent) NtSetEvent( hEvent, NULL ); - if (apc) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc, - (ULONG_PTR)apc_user, (ULONG_PTR)io_status, 0 ); + if (apc && !status) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc, + (ULONG_PTR)apc_user, (ULONG_PTR)io_status, 0 ); } else { diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index f857777..1a04e9a 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -836,9 +836,9 @@ static void read_file_test(void) ResetEvent( event ); status = pNtReadFile( handle, event, apc, &apc_count, &iosb, buffer, 2, &offset, NULL ); ok( status == STATUS_END_OF_FILE, "wrong status %x\n", status ); - todo_wine ok( U(iosb).Status == STATUS_END_OF_FILE, "wrong status %x\n", U(iosb).Status ); - todo_wine ok( iosb.Information == 0, "wrong info %lu\n", iosb.Information ); - todo_wine ok( is_signaled( event ), "event is not signaled\n" ); + ok( U(iosb).Status == STATUS_END_OF_FILE, "wrong status %x\n", U(iosb).Status ); + ok( iosb.Information == 0, "wrong info %lu\n", iosb.Information ); + ok( is_signaled( event ), "event is not signaled\n" ); ok( !apc_count, "apc was called\n" ); SleepEx( 1, TRUE ); /* alertable sleep */ ok( !apc_count, "apc was called\n" ); @@ -2094,9 +2094,7 @@ static void test_read_write(void) iob.Information = -1; status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, sizeof(buf), NULL, NULL); ok(status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); SetFilePointer(hfile, 0, NULL, FILE_BEGIN); @@ -2156,7 +2154,6 @@ todo_wine ok(!ret, "ReadFile should fail\n"); ok(GetLastError() == ERROR_HANDLE_EOF, "expected ERROR_HANDLE_EOF, got %d\n", GetLastError()); ok(bytes == 0, "bytes %u\n", bytes); -todo_wine ok((NTSTATUS)ovl.Internal == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#lx\n", ovl.Internal); ok(ovl.InternalHigh == 0, "expected 0, got %lu\n", ovl.InternalHigh); @@ -2178,9 +2175,7 @@ todo_wine iob.Information = -1; status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, sizeof(buf), NULL, NULL); ok(status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); U(iob).Status = -1; @@ -2195,9 +2190,7 @@ todo_wine offset.QuadPart = sizeof(contents); status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, sizeof(buf), &offset, NULL); ok(status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); U(iob).Status = -1; @@ -2213,9 +2206,7 @@ todo_wine offset.QuadPart = (LONGLONG)-2 /* FILE_USE_FILE_POINTER_POSITION */; status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, sizeof(buf), &offset, NULL); ok(status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_END_OF_FILE, "expected STATUS_END_OF_FILE, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); U(iob).Status = -1;
1
0
0
0
Dmitry Timoshkov : ntdll: NtReadFile should not fail for 0-length reads at EOF.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: a5e80b2d600dbca37e3314c6ac677d6e883df2c7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a5e80b2d600dbca37e3314c6a…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Wed Oct 30 14:24:25 2013 +0900 ntdll: NtReadFile should not fail for 0-length reads at EOF. --- dlls/ntdll/file.c | 4 ++-- dlls/ntdll/tests/file.c | 16 ---------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 8c8f4cf..9b05978 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -636,7 +636,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent, lseek( unix_handle, offset->QuadPart + result, SEEK_SET ); total = result; - status = total ? STATUS_SUCCESS : STATUS_END_OF_FILE; + status = (total || !length) ? STATUS_SUCCESS : STATUS_END_OF_FILE; goto done; } } @@ -665,7 +665,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent, { case FD_TYPE_FILE: case FD_TYPE_CHAR: - status = STATUS_END_OF_FILE; + status = length ? STATUS_END_OF_FILE : STATUS_SUCCESS; goto done; case FD_TYPE_SERIAL: break; diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index d9e85fd..f857777 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -2168,12 +2168,9 @@ todo_wine bytes = -1; SetLastError(0xdeadbeef); ret = ReadFile(hfile, buf, 0, &bytes, &ovl); -todo_wine ok(ret, "ReadFile error %d\n", GetLastError()); -todo_wine ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastError()); ok(bytes == 0, "bytes %u\n", bytes); -todo_wine ok((NTSTATUS)ovl.Internal == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#lx\n", ovl.Internal); ok(ovl.InternalHigh == 0, "expected 0, got %lu\n", ovl.InternalHigh); @@ -2189,11 +2186,8 @@ todo_wine U(iob).Status = -1; iob.Information = -1; status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, 0, NULL, NULL); -todo_wine ok(status == STATUS_SUCCESS, "NtReadFile error %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); U(iob).Status = -1; @@ -2210,11 +2204,8 @@ todo_wine iob.Information = -1; offset.QuadPart = sizeof(contents); status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, 0, &offset, NULL); -todo_wine ok(status == STATUS_SUCCESS, "NtReadFile error %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); U(iob).Status = -1; @@ -2231,11 +2222,8 @@ todo_wine iob.Information = -1; offset.QuadPart = (LONGLONG)-2 /* FILE_USE_FILE_POINTER_POSITION */; status = pNtReadFile(hfile, 0, NULL, NULL, &iob, buf, 0, &offset, NULL); -todo_wine ok(status == STATUS_SUCCESS, "NtReadFile error %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); for (i = -20; i < 0; i++) @@ -2351,7 +2339,6 @@ todo_wine /* ReadFile return value depends on Windows version and testing it is not practical */ ReadFile(hfile, buf, 0, &bytes, &ovl); ok(bytes == 0, "bytes %u\n", bytes); -todo_wine ok((NTSTATUS)ovl.Internal == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#lx\n", ovl.Internal); ok(ovl.InternalHigh == 0, "expected 0, got %lu\n", ovl.InternalHigh); @@ -2547,11 +2534,8 @@ todo_wine } else { -todo_wine ok(status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x\n", status); -todo_wine ok(U(iob).Status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %#x\n", U(iob).Status); -todo_wine ok(iob.Information == 0, "expected 0, got %lu\n", iob.Information); }
1
0
0
0
Henri Verbeet : d3drm: Get rid of the IDirect3DRMMeshBuilderImpl typedef.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: c35485d627575e1ac993c2a45d955da3521e6941 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c35485d627575e1ac993c2a45…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Oct 31 09:40:43 2013 +0100 d3drm: Get rid of the IDirect3DRMMeshBuilderImpl typedef. --- dlls/d3drm/meshbuilder.c | 1211 ++++++++++++++++++++-------------------------- 1 files changed, 534 insertions(+), 677 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=c35485d627575e1ac993c…
1
0
0
0
Henri Verbeet : d3drm: Get rid of the mesh_material typedef.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 22d40f0305608d2715d482750c6cc169e16cee59 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22d40f0305608d2715d482750…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Oct 31 09:40:42 2013 +0100 d3drm: Get rid of the mesh_material typedef. --- dlls/d3drm/meshbuilder.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c index 5e776d5..486d787 100644 --- a/dlls/d3drm/meshbuilder.c +++ b/dlls/d3drm/meshbuilder.c @@ -62,11 +62,12 @@ struct coords_2d D3DVALUE v; }; -typedef struct { +struct mesh_material +{ D3DCOLOR color; IDirect3DRMMaterial2 *material; IDirect3DRMTexture3 *texture; -} mesh_material; +}; typedef struct { IDirect3DRMMeshBuilder2 IDirect3DRMMeshBuilder2_iface; @@ -86,7 +87,7 @@ typedef struct { IDirect3DRMMaterial2 *material; IDirect3DRMTexture3 *texture; DWORD nb_materials; - mesh_material *materials; + struct mesh_material *materials; DWORD *material_indices; } IDirect3DRMMeshBuilderImpl;
1
0
0
0
Henri Verbeet : ddraw/tests: Use explicit A calls.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 026dc116771dd3dc583b5b7db74c56debe2c0d04 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=026dc116771dd3dc583b5b7db…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Oct 31 09:40:41 2013 +0100 ddraw/tests: Use explicit A calls. --- dlls/ddraw/tests/Makefile.in | 1 - dlls/ddraw/tests/d3d.c | 3 +- dlls/ddraw/tests/ddraw1.c | 8 +++--- dlls/ddraw/tests/ddraw2.c | 8 +++--- dlls/ddraw/tests/ddraw4.c | 8 +++--- dlls/ddraw/tests/ddraw7.c | 8 +++--- dlls/ddraw/tests/ddrawmodes.c | 9 +------ dlls/ddraw/tests/dsurface.c | 12 +++++++--- dlls/ddraw/tests/visual.c | 47 +++++++++++++++++++++------------------- 9 files changed, 53 insertions(+), 51 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=026dc116771dd3dc583b5…
1
0
0
0
Henri Verbeet : d3dx9/tests: Use explicit A calls.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 3e5dd54971b6c6cb1520b2b600dc18cc318e5aa3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e5dd54971b6c6cb1520b2b60…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Oct 31 09:40:40 2013 +0100 d3dx9/tests: Use explicit A calls. --- dlls/d3dx9_36/tests/Makefile.in | 1 - dlls/d3dx9_36/tests/core.c | 10 ++-- dlls/d3dx9_36/tests/effect.c | 8 ++-- dlls/d3dx9_36/tests/line.c | 8 ++-- dlls/d3dx9_36/tests/mesh.c | 88 +++++++++++++++++---------------------- dlls/d3dx9_36/tests/shader.c | 18 +++----- dlls/d3dx9_36/tests/surface.c | 16 ++++--- dlls/d3dx9_36/tests/texture.c | 4 +- dlls/d3dx9_36/tests/volume.c | 3 +- 9 files changed, 70 insertions(+), 86 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=3e5dd54971b6c6cb1520b…
1
0
0
0
Henri Verbeet : d3d9/tests: Use color_match() in more places.
by Alexandre Julliard
31 Oct '13
31 Oct '13
Module: wine Branch: master Commit: 90bd39c4e35f9f2fcafd3397e907fd4b00ab2aa3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=90bd39c4e35f9f2fcafd3397e…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Oct 31 09:40:39 2013 +0100 d3d9/tests: Use color_match() in more places. --- dlls/d3d9/tests/visual.c | 93 +++++++++++++++++++--------------------------- 1 files changed, 38 insertions(+), 55 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=90bd39c4e35f9f2fcafd3…
1
0
0
0
← Newer
1
2
3
4
...
76
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
Results per page:
10
25
50
100
200