Module: wine
Branch: master
Commit: d990c0d8e50c5eaabac8b855b9511cbc42d783bd
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d990c0d8e50c5eaabac8b85…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr>
Date: Sat Sep 30 21:20:41 2006 +0200
ntdll-kernel32: WaitCommEvent.
- implemented IOCTL_SERIAL_WAIT_ON_MASK for DeviceIoControl
on serial lines in ntdll
- now using thread pool (instead of simple thread) for the
background operations (this should help some high load
situations)
- used this to implement WaitCommEvent on top NtDll functions
- in kernel32, removed now the no longer used termios/ioctls...
for comm devices
---
dlls/kernel32/comm.c | 345 --------------------------------------------------
dlls/ntdll/serial.c | 320 +++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 313 insertions(+), 352 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=d990c0d8e50c5eaabac…
Module: wine
Branch: master
Commit: 20eb2f99987334120327b3eca18297ae894a7185
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=20eb2f99987334120327b3e…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Fri Sep 29 12:49:01 2006 +0200
comctl32: Fix LVM_GETITEM/LVIF_STATE so it only returns the bits it
has been asked for, and sets all the others to zero (with conformance
test).
---
dlls/comctl32/listview.c | 2 +-
dlls/comctl32/tests/listview.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 108d055..b66d047 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -5364,7 +5364,7 @@ static BOOL LISTVIEW_GetItemT(LISTVIEW_I
/* ... the state field (this one is different due to uCallbackmask) */
if (lpLVItem->mask & LVIF_STATE)
{
- lpLVItem->state = lpItem->state;
+ lpLVItem->state = lpItem->state & lpLVItem->stateMask;
if (dispInfo.item.mask & LVIF_STATE)
{
lpLVItem->state &= ~dispInfo.item.stateMask;
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index e96ad26..5d166e0 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -189,6 +189,16 @@ static void test_checkboxes(void)
r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
ok(item.state == 0x2aaa, "state %x\n", item.state);
+ /* Check that only the bits we asked for are returned,
+ * and that all the others are set to zero
+ */
+ item.iItem = 3;
+ item.mask = LVIF_STATE;
+ item.stateMask = 0xf000;
+ item.state = 0xffff;
+ r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
+ ok(item.state == 0x2000, "state %x\n", item.state);
+
/* Set the style again and check that doesn't change an item's state */
r = SendMessage(hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_CHECKBOXES, LVS_EX_CHECKBOXES);
ok(r == LVS_EX_CHECKBOXES, "ret %lx\n", r);