Module: wine
Branch: master
Commit: 7103be9c1b6cb21b074d7710f7316433ae46444b
URL: https://gitlab.winehq.org/wine/wine/-/commit/7103be9c1b6cb21b074d7710f73164…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru>
Date: Tue May 28 18:39:28 2024 +0300
user32/tests: Add a test to show that SendMessage(LB_SETCOUNT) adds a scrollbar.
In addition to existing tests this shows that the call
SendMessage(listbox, LB_SETCOUNT, 100, 0);
adds a scrollbar to the listbox however it doesn't add a nonclient area to
an update region because the call
ValidateRect(listbox, NULL);
validates a client area, and after that a window no longer has an update region.
Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru>
---
dlls/user32/tests/listbox.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c
index c78171ff4d8..747e3dae192 100644
--- a/dlls/user32/tests/listbox.c
+++ b/dlls/user32/tests/listbox.c
@@ -1939,11 +1939,17 @@ static void test_set_count( void )
GetUpdateRect( listbox, &r, TRUE );
ok( IsRectEmpty( &r ), "got non-empty rect\n");
+ ret = GetWindowLongA( listbox, GWL_STYLE );
+ ok((ret & (WS_VSCROLL | WS_HSCROLL)) == 0, "Listbox should not have scroll bars\n");
+
ret = SendMessageA( listbox, LB_SETCOUNT, 100, 0 );
ok( ret == 0, "got %ld\n", ret );
ret = SendMessageA( listbox, LB_GETCOUNT, 0, 0 );
ok( ret == 100, "got %ld\n", ret );
+ ret = GetWindowLongA( listbox, GWL_STYLE );
+ ok((ret & (WS_VSCROLL | WS_HSCROLL)) == WS_VSCROLL, "Listbox should have vertical scroll bar\n");
+
GetUpdateRect( listbox, &r, TRUE );
ok( !IsRectEmpty( &r ), "got empty rect\n");
Module: wine
Branch: master
Commit: 11a386960ebcc7de0e194912bae28c99ff2f899e
URL: https://gitlab.winehq.org/wine/wine/-/commit/11a386960ebcc7de0e194912bae28c…
Author: Danyil Blyschak <dblyschak(a)codeweavers.com>
Date: Fri May 24 16:13:46 2024 -0500
wineps.drv: Only merge dmDefaultSource member of devmodes when a slot is found.
In the PSDRV_MergeDevmodes and merge_devmodes functions, there is a
check earlier to update dmDefaultSource only if a slot is found, and so
this member should not be updated again with no such check.
---
dlls/wineps.drv/driver.c | 2 --
dlls/wineps.drv/unixlib.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/dlls/wineps.drv/driver.c b/dlls/wineps.drv/driver.c
index d56118e5e2c..1170e161b17 100644
--- a/dlls/wineps.drv/driver.c
+++ b/dlls/wineps.drv/driver.c
@@ -181,8 +181,6 @@ void PSDRV_MergeDevmodes( PSDRV_DEVMODE *dm1, const DEVMODEW *dm2, PRINTERINFO *
TRACE("Trying to change to unsupported bin %d\n", dm2->dmDefaultSource);
}
- if (dm2->dmFields & DM_DEFAULTSOURCE )
- dm1->dmPublic.dmDefaultSource = dm2->dmDefaultSource;
if (dm2->dmFields & DM_PRINTQUALITY )
dm1->dmPublic.dmPrintQuality = dm2->dmPrintQuality;
if (dm2->dmFields & DM_COLOR )
diff --git a/dlls/wineps.drv/unixlib.c b/dlls/wineps.drv/unixlib.c
index e9b009b0e87..a96f919c02a 100644
--- a/dlls/wineps.drv/unixlib.c
+++ b/dlls/wineps.drv/unixlib.c
@@ -422,8 +422,6 @@ static void merge_devmodes(PSDRV_DEVMODE *dm1, const DEVMODEW *dm2,
TRACE("Trying to change to unsupported bin %d\n", dm2->dmDefaultSource);
}
- if (dm2->dmFields & DM_DEFAULTSOURCE)
- dm1->dmPublic.dmDefaultSource = dm2->dmDefaultSource;
if (dm2->dmFields & DM_PRINTQUALITY)
dm1->dmPublic.dmPrintQuality = dm2->dmPrintQuality;
if (dm2->dmFields & DM_COLOR)
Module: wine
Branch: master
Commit: 480598680ceb86661bd269b7a64bd90e38a40f98
URL: https://gitlab.winehq.org/wine/wine/-/commit/480598680ceb86661bd269b7a64bd9…
Author: Zhiyi Zhang <zzhang(a)codeweavers.com>
Date: Mon Jan 1 18:04:44 2024 +0800
comctl32/syslink: Don't delete font when destroying the control.
The font set by WM_SETFONT is not owned by syslink so it shouldn't be deleted when handling
WM_DESTROY for the control.
Fix Toad for Oracle text gets reset to the system font after installing Team Coding. The application
creates a font and set it to a syslink. Then after the syslink destroys itself, the font becomes
invalid so other controls using the font end up falling back to the system font.
---
dlls/comctl32/syslink.c | 1 -
dlls/comctl32/tests/misc.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/dlls/comctl32/syslink.c b/dlls/comctl32/syslink.c
index 6af516ea1e6..f5a70e982c3 100644
--- a/dlls/comctl32/syslink.c
+++ b/dlls/comctl32/syslink.c
@@ -1711,7 +1711,6 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
case WM_DESTROY:
TRACE("SysLink Ctrl destruction, hwnd=%p\n", hwnd);
SYSLINK_ClearDoc(infoPtr);
- if(infoPtr->Font != 0) DeleteObject(infoPtr->Font);
if(infoPtr->LinkFont != 0) DeleteObject(infoPtr->LinkFont);
SetWindowLongPtrW(hwnd, 0, 0);
Free (infoPtr);
diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c
index e5ac43a7ae0..c57f4581a4b 100644
--- a/dlls/comctl32/tests/misc.c
+++ b/dlls/comctl32/tests/misc.c
@@ -1246,7 +1246,6 @@ static void test_WM_SETFONT(void)
}
else
{
- todo_wine_if(!lstrcmpA(tests[i].class_name, "SysLink"))
ok(ret == sizeof(lf), "GetObjectA failed, error %lu.\n", GetLastError());
}