[PATCH] wine.inf: Don't use DDE for winebrowser by default.

Shawn M. Chapla schapla at codeweavers.com
Tue May 18 11:54:30 CDT 2021


Signed-off-by: Shawn M. Chapla <schapla at codeweavers.com>
---

Recent versions of Windows (Windows 7 and newer) no longer use DDE by
default when ShellExec* APIs are used to open the types of files and
addresses that Wine ultimately handles using winebrowser.

In 2007, fe07efb3 changed wine.inf to reflect the default values on
Windows XP and earlier since some programs happened to rely on these
exact values (see Wine Bug 7953). Now, these are no longer the default
values on native and there are several programs (including the popular
games like Darksburg and Cyberpunk 2077) that rely on ShellExec* APIs
*not* attempting to start a DDE session when opening a URL, as doing so
will cause those programs to hang.

While this patch may cause older versions of certain programs to stop
working correctly with Wine, those versions of those programs would also
no longer work correctly with native Windows 7 or newer.

 loader/wine.inf.in | 36 ++++++------------------------------
 1 file changed, 6 insertions(+), 30 deletions(-)

diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index a20efbcce3e..c909f58f53c 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -260,11 +260,7 @@ HKCR,folder\shell\open\ddeexec\application,,2,"Folders"
 HKCR,folder\shellex\ContextMenuHandlers,,16
 HKCR,hlpfile,,2,"Help File"
 HKCR,hlpfile\shell\open\command,,2,"%11%\winhlp32.exe %1"
-HKCR,htmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,htmlfile\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,htmlfile\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,htmlfile\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,htmlfile\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
+HKCR,htmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
 HKCR,inffile,,2,"Setup Information"
 HKCR,inffile\shell\install\command,,2,"%11%\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1"
 HKCR,inifile,,2,"Configuration Settings"
@@ -286,11 +282,7 @@ HKCR,Msi.Patch,,2,"Windows Installer Patch"
 HKCR,Msi.Patch\DefaultIcon,,2,"msiexec.exe"
 HKCR,Msi.Patch\shell\Open\command,,2,"%11%\msiexec.exe /p ""%1"""
 HKCR,pdffile,,2,"PDF Document"
-HKCR,pdffile\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,pdffile\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,pdffile\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,pdffile\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,pdffile\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
+HKCR,pdffile\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
 HKCR,rtffile,,2,"Rich Text Document"
 HKCR,rtffile\shell\open\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" %1"
 HKCR,rtffile\shell\print\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" /p %1"
@@ -300,26 +292,10 @@ HKCR,txtfile\shell\print\command,,2,"%11%\notepad.exe /p %1"
 HKCR,wrifile\shell\open\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" %1"
 HKCR,wrifile\shell\print\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" /p %1"
 HKCR,xmlfile,,2,"XML Document"
-HKCR,xmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,xmlfile\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,xmlfile\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,xmlfile\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,xmlfile\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
-HKCR,ftp\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,ftp\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,ftp\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,ftp\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,ftp\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
-HKCR,http\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,http\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,http\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,http\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,http\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
-HKCR,https\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome"
-HKCR,https\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"
-HKCR,https\shell\open\ddeexec,"NoActivateHandler",2,""
-HKCR,https\shell\open\ddeexec\Application,,2,"IExplore"
-HKCR,https\shell\open\ddeexec\Topic,,2,"WWW_OpenURL"
+HKCR,xmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
+HKCR,ftp\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
+HKCR,http\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
+HKCR,https\shell\open\command,,2,"""%11%\winebrowser.exe"" %1"
 HKCR,mailto\shell\open\command,,2,"%11%\winebrowser %1"
 
 HKCR,MIME\Database\Charset\_iso-2022-jp$ESC,"Codepage",0x10003,932
-- 
2.28.0




More information about the wine-devel mailing list