Commit graph

1260 commits

Author SHA1 Message Date
Brendan Shanks
307f5d00f1 loader: On Mac, reserve an area starting at 4GB to force Rosetta's allocations higher.
On Apple Silicon, Rosetta allocates memory starting at 0x100000000
(the 4GB line) before the preloader runs.
The .NET 3.5 installer and DirectX Jun2010 redistributable both contain
non-relocatable EXEs with that base address, which fail to run.

The workaround is to create an empty linker section at that address,
which is mapped by the kernel before Rosetta runs and forces Rosetta's
allocations higher in memory.
The linker section runs from 0x100000000-0x114000000.
Rosetta's allocations are ~132MB, and should end below 0x120000000.

This is not an exact science: a non-relocatable EXE with base address
between 0x114000000-0x120000000 will fail to run. If one is discovered,
the section size will need to be changed.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-29 10:16:48 +01:00
Brendan Shanks
720611e28e loader: On Mac, move the top-down allocations area down to avoid Rosetta regions.
On Apple Silicon, Rosetta's shared cache starts at 0x7ffe00000000 and
the runtime is mapped below that.
Put the top-down allocation area below the runtime with plenty of room
to spare.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-29 10:16:42 +01:00
Henri Verbeet
e389f11137 wine.inf: Store Dynamic DST data for Asia/Tehran as "relative" dates.
I.e., the "Nth <weekday> of <month>" form. This form is much less convenient
for timezones where the DST change happens on specific dates, but some
applications distribute old versions of Mono that don't bother checking the
"wYear" fields of the SYSTEMTIME fields in the TIME_ZONE_INFORMATION structure
returned by GetTimeZoneInformation(), and instead always convert the presumed
"relative" dates to "absolute" dates. Unsurprisingly, the resulting dates are
invalid, and these applications then end up throwing
"System.NotSupportedException: Can't get timezone name." when run in such a
timezone, typically early during startup.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-15 22:09:21 +01:00
Alexandre Julliard
31062ee534 wine.inf: Create a default win.ini file.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:38:25 +01:00
Brendan Shanks
ba8638e1a4 wine.inf: Add UrlAssociations for FTP/HTTP/HTTPS.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50094
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-25 21:39:18 +01:00
Alexandre Julliard
e06ae69d2c mscms: Install the sRGB color profile.
Based on a patch by Alex Henrie.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37396
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 21:14:29 +01:00
Alexandre Julliard
7caa127746 wineusb.sys: Move wineusb.inf into the module resources.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 11:04:40 +01:00
Alexandre Julliard
6aa7704cf6 winehid.sys: Move winehid.inf into the module resources.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 11:04:25 +01:00
Alexandre Julliard
4650dff5c4 winebus.sys: Move winebus.inf into the module resources.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 11:04:06 +01:00
Daniel Lehman
da46adac99 wine.inf: Add Dynamic DST for Australian time zones.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:42 +01:00
Daniel Lehman
4c72ae9477 tzres: Add Aus Central W. Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:37 +01:00
Daniel Lehman
8a3f1569dd tzres: Add Lord Howe Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:44:47 +01:00
Daniel Lehman
3bf9092590 wine.inf: Update Pacific SA Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:02:21 +01:00
Daniel Lehman
908fcc3d7a wine.inf: Update Caucasus Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:02:16 +01:00
Daniel Lehman
ec9ed7052e wine.inf: Update Azerbaijan Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:02:05 +01:00
Daniel Lehman
b5d39469b8 tzres: Add Saint Pierre Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:45:13 +01:00
Daniel Lehman
af5c7c3356 tzres: Add Magallanes Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:44:41 +01:00
Daniel Lehman
a7634295d6 tzres: Add Tocantins Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 22:23:08 +01:00
Daniel Lehman
0bc752f30d wine.inf: Fix SA Eastern Standard Time Zone info.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 11:05:09 +01:00
Zebediah Figura
cb8d58598b wine.inf: IsInstalled is a DWORD value.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50016
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 10:58:14 +02:00
Daniel Lehman
0adafcd62c tzres: Add Eastern Standard Time (Mexico) Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 11:32:55 +02:00
Nikolay Sivov
1ca4536f7e nls: Build codepage data for CP708.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 17:22:56 +02:00
Daniel Lehman
3d268f1fdc tzres: Add Cuba Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 11:24:12 +02:00
Daniel Lehman
a486680a2b tzres: Add North Korea Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-05 12:33:31 +02:00
Dmitry Timoshkov
7e7e81f0c6 wevtsvc: Add EventLog service stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-28 17:03:57 +02:00
Alexandre Julliard
a204ad557d makefiles: Expand makedep path at compile time.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 20:30:31 +02:00
Alexandre Julliard
4826900a30 loader: No longer depend on libwine.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-08 16:26:17 +02:00
Isabella Bosia
7c1dd57b4f wine.inf: Create NDIS service.
Signed-off-by: Isabella Bosia <ibosia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-03 15:24:00 +02:00
Alexandre Julliard
af1a328fa0 ntdll: Use syscalls for the Wine version functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-25 19:31:43 +02:00
Martin Storsjo
a75596c94d loader: Fix the generic case in get_self_exe().
Previously this just returned the matched directory, not the path
to the executable itself.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-20 18:49:09 +02:00
Fabian Maurer
f3a38b88d6 wine.inf: Map the Intl section of win.ini to the registry.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49653
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-11 18:08:31 +02:00
Zebediah Figura
90ed63618a wine.inf: Map the Sounds section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-24 10:17:29 +02:00
Zebediah Figura
d6a6d6a60e wine.inf: Map the PrinterPorts section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-24 10:17:24 +02:00
Zebediah Figura
73cd65fe8e wine.inf: Map the Extensions section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-24 10:17:18 +02:00
Zebediah Figura
13adddc071 wine.inf: Map the Desktop section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-24 10:17:14 +02:00
Zebediah Figura
96115da054 wine.inf: Map the Devices section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-23 22:30:48 +02:00
Zebediah Figura
f8be6935ca wine.inf: Map the Windows section of win.ini to the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-21 20:30:18 +02:00
Zebediah Figura
c3b35a44a4 wine.inf: Map CursorBlinkRate to the registry.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=10106
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-21 20:30:16 +02:00
Paul Gofman
8fe1c9e1bb netio.sys: Add driver stub.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-03 22:03:06 +02:00
Zebediah Figura
cfa4282119 wine.inf: Install some driver libraries in the system32/drivers subdirectory.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-22 14:32:02 +02:00
Alistair Leslie-Hughes
0c68a1510e loader: http.sys belongs in the driver directory.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-21 10:31:34 +02:00
Chip Davis
c1b78caf1d preloader: Depend on wine_info.plist.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-20 10:49:03 +02:00
Alexandre Julliard
50134cce82 ntdll: Do the pre-exec checks in the Unix library.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-17 16:54:39 +02:00
Alexandre Julliard
526522caae loader: Try to load ntdll.so before libwine initialization.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 23:12:31 +02:00
Zebediah Figura
d7c9cd2e2f wine.inf: Install WMI DLLs in the wbem subdirectory in WoW64 too.
Hauppauge WinTV 8.5 expects to find wmic.exe here. Without this patch it
incorrectly reports that a device is connected.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-27 11:34:45 +02:00
Zebediah Figura
e13d546657 wine.inf: Set the default Current{Major, Minor}VersionNumber registry values.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-20 12:35:51 +02:00
Zebediah Figura
dc62d84828 wineusb.inf: Add new INF file.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:17 +02:00
Zebediah Figura
3c39209444 wineusb.sys: New stub driver.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-16 22:10:04 +02:00
Brendan Shanks
dfc159d874 winevulkan: Create JSON manifest and registry entry used by official Vulkan loader.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47109
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 15:53:53 +02:00
Daniel Lehman
b41d5c10ad loader: Add Marquesas Standard Time Zone.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 12:09:07 +02:00