Module: wine
Branch: master
Commit: cfcc280905b7804efde8f42bcd6bddbe5ebd8cad
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cfcc280905b7804efde8f42b…
Author: Rémi Bernon <rbernon(a)codeweavers.com>
Date: Thu Dec 26 12:51:23 2019 +0100
winex11.drv: Send HTMENU instead of HTCAPTION to query window activation.
Commit 71d35d8940118bc6de6522913fb8c473fa5b2c24 broke the way
WM_TAKE_FOCUS protocol is implemented: WM_MOUSEACTIVATE now replies
MA_NOACTIVATE by default when using HTCAPTION.
We use the WM_MOUSEACTIVATE -although Windows does not- regardless of
the way focus is changed to check whether a window wants focus, and
Windows sometimes changes focus regardless of the message reply.
Steam and the Wine system tray are affected for instance.
Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winex11.drv/event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index dd8837c11d..07f7a1ad50 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -706,7 +706,7 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
* whether the window wants to be activated */
LRESULT ma = SendMessageW( hwnd, WM_MOUSEACTIVATE,
(WPARAM)GetAncestor( hwnd, GA_ROOT ),
- MAKELONG(HTCAPTION,WM_LBUTTONDOWN) );
+ MAKELONG( HTMENU, WM_LBUTTONDOWN ) );
if (ma != MA_NOACTIVATEANDEAT && ma != MA_NOACTIVATE)
{
set_focus( event->display, hwnd, event_time );
Module: wine
Branch: master
Commit: 523fb9496c7758be9626d3d5b6a07014f867f640
URL: https://source.winehq.org/git/wine.git/?a=commit;h=523fb9496c7758be9626d3d5…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com>
Date: Thu Dec 26 14:30:07 2019 +0200
winex11.drv: Ignore .dwAspect in FORMATETC during XDnD.
Some applications pass FORMATETC.dwAspect=0 to
IDataObject_[Query]GetData() during drag and drop, which
is not a valid DVASPECT_* value. Tests show that Windows
Explorer completely ignores .dwAspect for CF_HDROP when
it is the drag source, treating all values as
DVASPECT_CONTENT instead. Do the same.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43368
Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winex11.drv/xdnd.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index 8dc4a5bce2..0cd2ad8892 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -827,11 +827,9 @@ static HRESULT WINAPI XDNDDATAOBJECT_QueryGetData(IDataObject *dataObject,
FIXME("only HGLOBAL medium types supported right now\n");
return DV_E_TYMED;
}
- if (formatEtc->dwAspect != DVASPECT_CONTENT)
- {
- FIXME("only the content aspect is supported right now\n");
- return E_NOTIMPL;
- }
+ /* Windows Explorer ignores .dwAspect and .lindex for CF_HDROP,
+ * and we have no way to implement them on XDnD anyway, so ignore them too.
+ */
LIST_FOR_EACH_ENTRY(current, &xdndData, XDNDDATA, entry)
{
Module: wine
Branch: master
Commit: b95d2f553c37b80e0d89a811a1821016700e8510
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b95d2f553c37b80e0d89a811…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru>
Date: Tue Dec 24 17:55:51 2019 +0800
ntdll: Use default casemap and codepage file names if the value in registry is empty.
This helps to keep compatibility with old prefixes being reused for wine-5.0.
Old prefixes in their registry have
[System\\CurrentControlSet\\Control\\Nls\\Codepage]
"37"=""
[System\\CurrentControlSet\\Control\\Nls\\Language]
"0409"=""
and this leads to LCMapString(LCMAP_LOWERCASE/LCMAP_UPPERCASE) return garbage.
This is a regression caused by 94a3add0ea7889dbd26a4ded60ace1c40b02ed89.
Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ntdll/locale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/locale.c b/dlls/ntdll/locale.c
index d9e4e8086e..e3f562808b 100644
--- a/dlls/ntdll/locale.c
+++ b/dlls/ntdll/locale.c
@@ -218,7 +218,7 @@ static NTSTATUS open_nls_data_file( ULONG type, ULONG id, HANDLE *file )
NtClose( handle );
}
- if (!name) /* otherwise some hardcoded defaults */
+ if (!name || !*name) /* otherwise some hardcoded defaults */
{
switch (type)
{