Hans Leidekker
a293b2f23a
wmic: Sort the alias list.
2024-06-03 23:24:59 +02:00
Eric Pouech
b3fa23e88d
conhost: Fix display of font preview in 64-bit mode.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-28 20:42:29 +02:00
Alexandre Julliard
83888e37df
conhost: Fix a printf format warning.
2024-05-24 12:35:56 +02:00
Alexandre Julliard
ecbc4cf06d
wineboot: Retrieve CPU details through the SMBIOS table.
2024-05-14 13:25:16 +02:00
Alexandre Julliard
7097c614b2
wineboot: Support multiple SMBIOS entries of the same type.
2024-05-14 13:20:17 +02:00
Alexandre Julliard
73c798021b
wineboot: Report the correct model number on ARM platforms.
2024-05-14 13:20:17 +02:00
Alexandre Julliard
c50dc0512c
wineboot: Get the CPU model details with NtQuerySystemInformation(SystemCpuInformation).
2024-05-14 13:20:17 +02:00
Alexandre Julliard
c3b1259f75
wineboot: Create CPU environment keys together with other hardware keys.
2024-05-14 13:20:15 +02:00
Eric Pouech
e6e1bbb410
cmd: Move operator from CMD_COMMAND to CMD_NODE.
...
For now, the tree is degenerated into a list (as it was before).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-13 21:09:45 +02:00
Eric Pouech
603e81a37a
cmd: Add helpers to handle list in degenerated binary tree.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-13 21:09:43 +02:00
Eric Pouech
7e70824ed5
cmd: Introduce CMD_NODE structure.
...
This will allow to separate better the individual command to
be executed (CMD_COMMAND) from the chaining and I/O handling
of several commands (CMD_NODE).
This also renames CMD_LIST into CMD_COMMAND to fit in above
scheme.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-13 21:09:41 +02:00
Eric Pouech
508b3ac996
cmd: Remove malloc attribute from xrealloc.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-13 21:09:39 +02:00
Eric Pouech
ae9bdbda3b
cmd: Use CRT's popen instead of rewriting it.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-08 22:39:44 +02:00
Eric Pouech
93354bbd88
cmd: Introduce xrealloc helper.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-08 22:39:44 +02:00
Eric Pouech
76237079d1
cmd: No longer keep track of last element in command list.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-08 22:39:44 +02:00
Eric Pouech
371eda6c4c
cmd: Consistenly use the same variable to identify current command.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-08 22:39:44 +02:00
Eric Pouech
6f0e9e5e4e
cmd/tests: Test success/failure of commands.
...
The || and && operators to chain commands rely on the LHS command
to be successful (or unsucessful) to decide upon launching the RHS
command.
Unfortunately, success/failure is not always when errorlevel is
0 (non zero).
Some exmaples:
- if a redirection fails (eg. appending to a non existing file),
the command (builtin/external) is always unsuccessful (and the
error level is untouched,
- external command (when redirection is ok) is succesful when
program exit code is zero,
- ditto for a call to a label inside the batch file, with
the 'exit /b' parameter,
- it's way more complicated for builtins. Eg 'type' is unsuccessful
on a non existing file, while 'dir' (on the same unexisting file)
succeeds.
So start adding some tests about success / failure of some commands.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-07 22:49:45 +02:00
Eric Pouech
289c49ee21
cmd/tests: Test calling batch files named as builtin commands.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-07 22:49:45 +02:00
Eric Pouech
8bbd48bfd8
cmd/tests: Test delayed expansion with spaces in IF and FOR.
...
Based on a patch by Alex Henrie.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-07 22:49:45 +02:00
Eric Pouech
232f282585
cmd/tests: Test nested loop variables expansion.
...
Based on a patch by Dimitry Sokolov.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-07 22:49:45 +02:00
Eric Pouech
14bdf6e725
cmd/tests: Test using %%0-%%9 as loop variables.
...
Based on a test case from Dimitry Sokolov.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-07 22:49:45 +02:00
Anton Baskanov
89ad36b1d9
explorer: Restore display settings on process exit.
...
Restore display settings to the ones in the registry when CDS_FULLSCREEN
is used in ChangeDisplaySettings().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49674
2024-05-02 10:06:57 +02:00
Alexandre Julliard
64923f3fee
widl: Default to fully interpreted stubs mode.
2024-05-02 09:22:40 +02:00
Alexandre Julliard
4679ceb7ed
systeminfo: Pass proper Unicode strings to fwprintf.
2024-04-29 17:35:26 +02:00
Alexandre Julliard
cc038c1a40
services: Use fully interpreted IDL stubs.
2024-04-26 10:41:58 +02:00
Alexandre Julliard
3f4562e7e1
rpcss: Use fully interpreted IDL stubs.
2024-04-26 10:41:53 +02:00
Alexandre Julliard
e26ed6bc99
plugplay: Use fully interpreted IDL stubs.
2024-04-26 10:41:49 +02:00
Alex Henrie
19e27e95b9
explorer: Fix font handle leaks in virtual desktop.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56133
2024-04-16 21:26:51 +02:00
Hans Leidekker
bc52693f9a
wmic: Handle multiple properties separated by whitespace.
2024-04-02 23:30:12 +02:00
Hans Leidekker
ca629dec9b
wmic: Handle failure from CommandLineToArgvW().
2024-04-02 23:30:11 +02:00
Hans Leidekker
2b3bc20103
wmic: Strip spaces once.
2024-04-02 23:30:11 +02:00
Hans Leidekker
c00da2e52d
wmic: Make an error message more general.
2024-04-02 23:30:11 +02:00
Eric Pouech
7f60584a90
cmd: Fix substring expansion for 'magic' variables.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56498
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-04-01 09:08:56 +02:00
Eric Pouech
b868d82391
cmd: Add test for substring handling in 'magic' variable expansion.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-04-01 09:08:49 +02:00
Louis Lenders
5a8bb41cad
wmic: Support interactive mode and piped commands.
...
Make piped commands work like for example "echo os get version|wmic"
or "type file.txt | wmic" where file.txt contains some commands.
Also support interactive mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56361
2024-03-29 22:45:36 +01:00
Paul Gofman
29c73ee173
ntdll: Support more xstate features.
2024-03-26 18:20:56 +01:00
Eric Pouech
a7ad588ec5
winedbg: Don't reload a minidump for a different machine.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-21 22:19:58 +01:00
Eric Pouech
70d11a59c6
winedbg: Update the CPU information displayed when reloading a minidump.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-21 22:19:58 +01:00
Eric Pouech
97e584b695
winedbg: Flush expr buffer upon internal exception.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-21 22:19:58 +01:00
Eric Pouech
2e46d81c64
winedbg: Extend 'attach' command to load minidump files.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-21 22:19:58 +01:00
Eric Pouech
8a65cdd13d
winedbg: Add ability to set executable name.
...
Either from command line option, or as a command.
Mostly handy for scripting.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-21 22:19:58 +01:00
Eric Pouech
6b9c1682b1
winedbg: Reload module without virtual flag.
...
So that we can get to debug info.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-15 15:06:38 +01:00
Eric Pouech
aabf6334f3
winedbg: Fallback to PE image when reading memory (minidump).
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-03-15 15:06:38 +01:00
Paul Gofman
9115dc0aba
explorer: Force debug info in critical sections.
2024-03-14 20:52:33 +01:00
Paul Gofman
95b0e65b07
services: Force debug info in critical sections.
2024-03-14 20:52:33 +01:00
Zebediah Figura
3103adb6a6
winetest: Elevate test processes on Wine.
2024-03-08 09:49:40 +01:00
Martin Storsjö
aa78b46e9c
arm64: Expose information about more modern CPU extensions.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-03-05 20:50:23 +01:00
Alexandre Julliard
b0a7439b30
winedbg: Use the official definitions for exception flags.
2024-02-29 18:14:48 +01:00
Eric Pouech
989988a5ae
winedbg: Use share attributes for opening command file.
...
(this fixes --command option when winedbg is relaunched in
wow64 case).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-19 20:39:43 +01:00
Alex Henrie
90103fa07e
where: Implement search with default options.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55282
2024-02-16 23:32:06 +01:00
Paul Gofman
1a4163b686
powershell: Read input command from stdin.
2024-02-16 23:32:06 +01:00
Gabriel Ivăncescu
8a71a4a304
explorer: Set layered style on systray icons before calling into the driver.
...
Fixes a regression introduced by b5c57b9a62
,
which broke the systray integration outside of virtual desktops on some
DEs like XFCE.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-15 20:40:55 +01:00
Zhiyi Zhang
ca97cb8700
server: Inherit internal desktop flags when creating desktops.
...
Based on Rémi's idea.
CEF applications create their own desktops and so is_virtual_desktop() could incorrectly
report that virtual desktop is off if DF_WINE_VIRTUAL_DESKTOP is not inherited.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55810
2024-02-13 22:37:50 +01:00
Zhiyi Zhang
2990a4f8c3
include: Rename DF_WINE_CREATE_DESKTOP to DF_WINE_VIRTUAL_DESKTOP.
2024-02-13 22:37:50 +01:00
Bernhard Übelacker
c418771a43
cmd: Avoid execution if block misses closing brackets.
2024-02-12 23:02:02 +01:00
Bernhard Übelacker
d7edf3e651
cmd: Handle lines with just spaces in bracket blocks.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51599
2024-02-12 23:02:02 +01:00
Gabriel Ivăncescu
b5c57b9a62
explorer: Set layered style on systray icons only when it's actually layered.
...
Fixes a regression introduced by 229b4561d9
,
which caused the icons to not be visible initially in the virtual desktop
systray.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-09 18:21:09 +01:00
Gabriel Ivăncescu
5e7a8f4db0
explorer: Don't activate the systray icon when showing it.
...
Fixes a regression introduced by 62c6646d8f
,
because SetParent will unconditionally activate the window, causing newly
added icons to deactivate the foreground window.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-09 18:21:06 +01:00
Alex Henrie
48440d2446
explorer: Handle the back and forward buttons of a 5-button mouse.
2024-02-08 23:31:25 +01:00
Paul Gofman
5da459f1f2
explorer: Don't pop start menu on "undo minimize all windows" systray command.
2024-02-06 22:54:21 +01:00
Paul Gofman
d66fe6206d
explorer: Don't pop start menu on "minimize all windows" systray command.
2024-02-06 22:54:21 +01:00
Rémi Bernon
852c4d0a8a
explorer: Restore a per-desktop ShowSystray registry setting.
...
With a global fallback setting under HKCU\Software\Wine\Explorer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56243
2024-01-29 21:16:06 +01:00
Jacek Caban
df0726e359
winevdm: Use char type for max length assignment.
2024-01-25 17:58:54 +01:00
Fabian Maurer
1fc50847e0
winedbg: Add missing break inside fetch_value (Coverity).
2024-01-17 11:01:16 +01:00
Eric Pouech
1d53204ebf
winedbg: Print all pid and tid with 4 hex characters.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-17 10:59:15 +01:00
Eric Pouech
edb38d15c5
winedbg: Make some internal data 'static const'.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-17 10:59:10 +01:00
Eric Pouech
b12c1eaea6
winedbg: Wait for gdb to terminate before exiting (proxy mode).
...
This mainly allows Wine to reset the tty settings upon
termination and not let gdb do it (cf bug report).
Change: user is now required to explicitely terminate gdb
('quit' command) upon debuggee termination.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56032
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-04 12:19:01 +01:00
Eric Pouech
8cbf27659b
winedbg: Fix main module detection in 'info share' command.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-22 21:50:55 +01:00
Bernhard Übelacker
b0db6cfd4d
winedbg: Retrieve module architecture before sorting.
...
This should avoid getting i386 when the process really is x86_64,
with just a single i386 module loaded.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56048
2023-12-19 21:41:02 +01:00
Alexandre Julliard
3fb882167f
winecfg: Support all Windows versions also in 64-bit mode.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56039
2023-12-19 14:14:04 +01:00
Rémi Bernon
23ee9b2969
explorer: Handle WM_CLOSE for docked icons for when they lose embedding.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56015
2023-12-13 19:13:01 +01:00
Alex Henrie
807d684157
explorer: Add an "Exit desktop" button to the Start menu.
...
When running `wine explorer.exe /desktop=shell` as a full-screen app,
there is no obvious way to close it and return to the Linux desktop.
Remedy that problem by adding an "Exit desktop" button to the Start menu
in the same place as the "Shut Down" button on Windows.
2023-12-08 22:31:38 +01:00
Fabian Maurer
ba4bc623ef
net: Accept yes/no switches.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55859
2023-12-07 20:21:43 +01:00
Nikolay Sivov
26f11bdfe5
ntdll: Use public type for SystemSupportedProcessorArchitectures returned data.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-06 10:20:50 +01:00
Eric Pouech
4b63e88894
ntdll: Don't create Unix console for GUI apps.
...
Note: GUI apps using std I/O (this is not common) will
no longer print on unix console.
If such a behavior is needed, for an app started from
Unix shell, one can either redirect output to a file, or pipe output:
./wine app | cat
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Zhiyi Zhang
1a6deb1cc3
tasklist: Fix a possible buffer overrun (Coverity).
...
process_entry->szExeFile has length of MAX_PATH but info->image_name only has 32.
2023-12-04 22:10:22 +01:00
Rémi Bernon
b088d311a0
explorer: Remove now unnecessary wine_notify_icon support.
2023-12-01 19:09:15 +01:00
Rémi Bernon
48e6bf3cf1
winex11: Use the new SystrayDock driver interface.
2023-12-01 19:09:14 +01:00
Rémi Bernon
229b4561d9
explorer: Use layered windows for the docked systray icons.
2023-12-01 19:09:14 +01:00
Rémi Bernon
62c6646d8f
win32u: Introduce new SystrayDock driver entry points.
2023-12-01 19:08:55 +01:00
Rémi Bernon
22bfdbeb48
win32u: Introduce a new NtUserSystemTrayCall message call.
2023-12-01 19:08:54 +01:00
Rémi Bernon
600206be39
explorer: Hide the standalone systray window on close.
2023-12-01 19:08:54 +01:00
Rémi Bernon
27c3cf93e3
explorer: Always set the systray icon tooltip text.
2023-12-01 19:08:54 +01:00
Alex Henrie
fcddf19498
cabarc: Use CRT allocation functions.
2023-11-29 23:16:39 +01:00
Alexandre Julliard
ef9debff60
wineboot: Remove a noisy FIXME.
2023-11-29 23:16:39 +01:00
Rémi Bernon
f2371a8b47
wineboot: Compute and write the TSC frequency to registry ~Mhz.
...
In HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor
Some games such as Horizon Zero Dawn use this registry value to
correlate values from rtdsc to real time.
Returning the nominal/maximum cpu frequency here causes the game to run
in slow motion as it may not match the tsc frequency of the processor.
Based on patches from Arkadiusz Hiler and Joshua Ashton.
2023-11-28 22:58:42 +01:00
Eric Pouech
8e00767fb4
uninstall: No longer use console/file output APIs.
...
Regular GUI apps don't.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-28 22:58:42 +01:00
Eric Pouech
1ba6a13528
winecfg: Output with MESSAGE.
...
Regular GUI programs don't use console nor std I/O.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-28 22:58:42 +01:00
Eric Pouech
e048f71ecb
msiexec: No longer use console/file output APIs.
...
Regular GUI apps don't.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-28 22:58:42 +01:00
Rémi Bernon
6e85177aa7
explorer: Cache the balloon window position.
2023-11-28 08:54:52 +01:00
Rémi Bernon
118810ad3b
explorer: Support standalone systray window mode.
2023-11-28 08:54:52 +01:00
Rémi Bernon
b8518d320f
explorer: Use an explicit display constant for hidden icons.
2023-11-28 08:54:52 +01:00
Rémi Bernon
b135fa4cd0
explorer: Handle balloon timer in the icons window proc.
2023-11-28 08:54:51 +01:00
Rémi Bernon
5312f6242d
explorer: Position the balloons relative to the icon windows.
2023-11-28 08:54:51 +01:00
Rémi Bernon
a60050abc8
explorer: Use the icon windows for their tooltips.
2023-11-28 08:54:51 +01:00
Rémi Bernon
76d144477c
explorer: Display the individual systray icon windows.
2023-11-28 08:54:51 +01:00
Rémi Bernon
d2ee32bfe6
explorer: Create individual windows for the systray icons.
2023-11-28 08:54:51 +01:00
Rémi Bernon
243433623a
explorer: Split systray add/remove from show/hide_icon.
2023-11-28 08:54:51 +01:00
Rémi Bernon
2e82d57d75
explorer: Remove unnecessary displayed icon array.
2023-11-28 08:54:49 +01:00
Eric Pouech
8a94049770
winedbg: Use dbghelp extended module info.
...
To pickup module's data model.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-24 16:47:19 +01:00