WineBrowser.exe fails to open links after update to WineHQ 8.x

Questions about Wine on Linux
Locked
User avatar
ghazan
Newbie
Newbie
Posts: 4
Joined: Sat Feb 18, 2023 7:05 am

WineBrowser.exe fails to open links after update to WineHQ 8.x

Post by ghazan »

Hi,

I'm running Kubuntu 22.10 + all postfixes, Wine 8.1 staging from your repository (https://dl.winehq.org/wine-builds/ubuntu kinetic/main amd64 Packages), and noticed that URLs are not opened anymore via the call of ShellExecuteW(nullptr, L"open", tszUrl, nullptr, nullptr, SW_NORMAL). Just nothing happens. WineBrowser.exe is set as https handler by default.

$wine winebrowser.exe "https://google.com" works okay and runs my default Linux browser.
ShellExecuteW(nullptr, L"open", "iexplore.exe", tszUrl, nullptr, SW_NORMAL) also works okay.

To reproduce the bug you need to download 64-bit Miranda from https://miranda-ng.org/downloads, unzip or install it into c:\Program Files\Miranda, launch Miranda64.exe, create an empty profile and open Help -> Miranda NG Homepage from the main menu.

WMBR, George Hazan,
Miranda NG maintainer
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: WineBrowser.exe fails to open links after update to WineHQ 8.x

Post by jkfloris »

Confirming.
With wine-staging 8.1, nothing happens when the NG Homepage button is clicked.
With wine-devel 8.2 the button works as expected.
I can't find if wine-staging does this on purpose or if this is a bug.
User avatar
ghazan
Newbie
Newbie
Posts: 4
Joined: Sat Feb 18, 2023 7:05 am

Re: WineBrowser.exe fails to open links after update to WineHQ 8.x

Post by ghazan »

jkfloris wrote: Sat Feb 18, 2023 1:41 pm With wine-devel 8.2 the button works as expected.
Yes, that is so, okay, I'll stay on the dev version for a while, until 8.2 moved to staging. Owner-drawn menu icons are still black, though... (you can see black squares in the main menu or in the tray one)
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: WineBrowser.exe fails to open links after update to WineHQ 8.x

Post by jkfloris »

The icons are visible when the Windows version is set to Windows 2003 or lower.

Code: Select all

winecfg -v win2003
You can file a bug here.
User avatar
ghazan
Newbie
Newbie
Posts: 4
Joined: Sat Feb 18, 2023 7:05 am

Re: WineBrowser.exe fails to open links after update to WineHQ 8.x

Post by ghazan »

@jkfloris finally I've done it, thanks
https://bugs.winehq.org/show_bug.cgi?id=54906

Cause this code is suppressed in my code that runs under Windows older than Vista+, this command really helps, thanks
Locked