Commit graph

9191 commits

Author SHA1 Message Date
Bernhard Übelacker feda122578 notepad: Use GetDesktopWindow() when main window is not yet created.
Commit 100504d2f5 introduced using GetDpiForWindow().
Unfortunately NOTEPAD_LoadSettingFromRegistry is executed when
the main window is not yet created, resulting in
having Globals.lfFont.lfHeight=0.
This is later stored in the registry in iPointSize=0.

In a fresh wine prefix there are not yet registry values created,
therefore the first run of notepad does not show this problem,
and iPointSize is saved with a sane value to the registry.

Having Globals.lfFont.lfHeight=0 manifests for example
in cups PDF prints being a single empty page.

The check of point_size for having a non-zero value should also fix
wine prefixes which have already a stored registry value of iPointSize=0.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55852
2023-11-20 22:46:44 +01:00
Alexandre Julliard 5148911b81 wusa: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:39 +01:00
Alexandre Julliard e040777841 explorer: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:23 +01:00
Eric Pouech 60108ea1bc dbghelp: Pretend mach-o is present in case of failure.
On MacOs, starting with Big Sur 11.0.1, the system dynamic
libraries are no longer directly accessible on disk.
They are still available through dlopen and friends. For getting
access to the images (and their debug symbol), Apple provides,
in the developper kit, the tools to extract the files. Note that
this is handled as a database of all system libraries, where ASLR
is in place such that segments of a given library are no longer
contiguous in memory (dbghelp doesn't currently handle this).

Apart from not having image information nor debug information,
another side effect is that dbghelp tries every time it refreshes the
mach-o module list to reload any library for which it didn't have
an image file. This can be lengthy (esp when a typical process has
more than 300 modules loaded).

This patch forces the creation of the dbghelp module even if the
image file isn't found.

This patch cuts startup time of 'winedbg notepad' from 9.9 to 7.4s.
YMMV.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-16 20:56:07 +01:00
Eric Pouech 01c98c5eaf dbghelp: Expose PE native vs builtin information to winedbg.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-16 20:56:07 +01:00
Eric Pouech 8d75739b6a dbghelp: No longer decorate ELF/Mach-O module names.
Rely solely on extended module information.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-16 20:56:04 +01:00
Eric Pouech c50e02ec9c dbghelp: Expose some internal information about modules to winedbg.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-16 20:56:03 +01:00
Eric Pouech 99dd763e18 winebrowser: Remove misleading comment.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-10 20:52:29 +01:00
Eric Pouech 21222ad7cd mshta: No longer use console / crt API.
As regular GUI apps should.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-10 20:52:29 +01:00
Eric Pouech 3c878a5572 wordpad: Remove unneeded output messages.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-10 20:52:29 +01:00
Eric Pouech 1390425cfc taskmgr: No longer use console/file output APIs.
Regular GUI apps don't.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-10 20:52:29 +01:00
Alexandre Julliard c07d50c3b9 winevdm: Don't claim that 16-bit apps are DPI aware. 2023-11-09 23:00:40 +01:00
Alex Henrie 0f44b3bdcb msiexec: Use CRT allocation functions. 2023-11-07 11:03:13 +01:00
Alex Henrie f51dba6b4a winecfg: Mention protocol associations. 2023-11-06 17:58:30 +01:00
Alex Henrie c4f4fb7f44 winemenubuilder: Create .desktop files for programs that open URIs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=22904
2023-11-06 17:49:56 +01:00
Eric Pouech e17b7d5565 services: Move to GUI subsystem (as native).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-06 17:03:30 +01:00
Eric Pouech 4e5d1ab6b2 svchost: Move to GUI subsystem (as native).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-06 17:03:28 +01:00
Eric Pouech 910133ac3d spoolsv: Move to GUI subsystem (as native).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-06 17:03:26 +01:00
Eric Pouech 99c3827952 dpnsvr: Move to GUI subsystem (as native).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-06 17:03:23 +01:00
Alex Henrie 1798540cb7 fsutil/tests: Use CRT allocation functions. 2023-11-02 10:15:14 +01:00
Alexandre Julliard acad49573a makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
Alexandre Julliard 7ccb5df0fc makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
Alexandre Julliard c432eac726 makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
Hans Leidekker fd00d8e4cc ntdll: Bump current build number to 19043 (Win10 2009).
Based on Proton commit 0fa76dd66a8.
2023-10-31 17:04:57 +01:00
Alex Henrie 0f88c7c31f winemenubuilder: Disallow desktop integration for internet shortcuts. 2023-10-30 13:33:28 +01:00
Alex Henrie 0c3530d698 uninstaller: Use CRT allocation functions. 2023-10-30 10:22:10 +01:00
Alex Henrie a3c3283c17 find/tests: Use CRT allocation functions. 2023-10-30 10:21:14 +01:00
Akihiro Sagawa 30e0deb70e cmd: Reset totals after trailer output.
Otherwise, sums are inherited between drives.
For instance, dir /s z:\tmp c:\windows\system32\drivers\etc shows
an incorrect summary for drive c.
2023-10-24 06:30:23 -05:00
Alex Henrie e86e228557 winemenubuilder: Disallow desktop integration for batch files. 2023-10-17 21:48:20 +02:00
Alexandre Julliard 2205218b24 makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
Alexandre Julliard 4e9f1a41b9 makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
Eric Pouech 44ab120661 winedbg: Correctly read LDT entries for wow64 debuggee.
This mostly matters for Mac as segment CS is handled as a real LDT
entry.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-10-13 18:04:36 +02:00
Eric Pouech 91ba80df26 winedbg: Set first LDT entry value as ntdll does.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-10-13 18:04:36 +02:00
Alexandre Julliard 64de93e300 makefiles: Always use the global SOURCES variable for .mc files. 2023-10-12 10:50:42 +02:00
Alex Henrie 8943fcbca4 uninstaller: Don't overallocate in FetchFromRootKey. 2023-10-10 23:15:05 +02:00
Helix Graziani 26471dd00e winecfg: Change system theme alongside app theme. 2023-10-10 10:25:38 +02:00
Alex Henrie 8f28294434 cmd: Reset ignoreBracket when moving to the next line.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55528
2023-10-09 11:40:34 +02:00
Hans Leidekker c3937d954f systeminfo: Add an implementation on top of WMI. 2023-09-27 21:47:40 +02:00
Alex Henrie 0d7cf84709 include: Move RTL functions that belong in ntddk.h from winternl.h to ntddk.h. 2023-09-27 11:17:47 +02:00
Akihiro Sagawa ae8b7109f0 cmd: Always outputs leading zeros when listing file time information. 2023-09-26 21:35:21 +02:00
Akihiro Sagawa 2188e11e78 cmd/tests: Test file time stamp format. 2023-09-26 21:35:21 +02:00
Akihiro Sagawa 6800ab403e cmd/tests: Add dir built-in command test. 2023-09-26 21:35:21 +02:00
Alex Henrie 4059c6ece2 wordpad: Use the wcsdup function instead of reimplementing it. 2023-09-25 10:23:38 +02:00
Alex Henrie e130ef40a1 sc: Use CRT allocation functions. 2023-09-25 10:23:38 +02:00
Alex Henrie 33ce8e046d regedit: Use the wcsdup function instead or reimplementing it. 2023-09-25 10:23:38 +02:00
Alex Henrie 0a7084f45a reg: Use the wcsdup function instead of reimplementing it. 2023-09-25 10:23:38 +02:00
Alex Henrie f24edd9dca dxdiag: Use CRT allocation functions. 2023-09-25 10:23:38 +02:00
Alex Henrie c46300ff28 conhost: Use the wcsdup function instead of reimplementing it. 2023-09-25 10:23:38 +02:00
Jacek Caban 555394b79c regedit: Use unsigned types for bitfields. 2023-09-13 22:07:19 +02:00
Ryan Hendrickson cd3ebad1ae regedit: Export hex(4) instead of dword if size isn't 4 bytes. 2023-09-12 20:11:31 +02:00