Commit graph

9344 commits

Author SHA1 Message Date
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
Alex Henrie a0e28f3fdb winemenubuilder: Use CRT allocation functions. 2023-09-08 11:27:22 +02:00
Alex Henrie dab59ded27 wineboot: Use CRT allocation functions. 2023-09-08 11:27:09 +02:00
Alex Henrie 58e62fff58 oleview: Use CRT allocation functions. 2023-09-08 11:26:55 +02:00
Alex Henrie 810bde3b25 extrac32: Use CRT allocation functions. 2023-09-08 11:26:48 +02:00
Eric Pouech 91cce00dba cmd: Better handle ctrl-c events.
cmd shouldn't terminate itself when user hits ctrl-c.
cmd should terminate the currently running CUI child it
waits for upon ctrl-c.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-09-06 12:05:49 +02:00
Hans Leidekker 757ea81a99 ipconfig: Call GetAdaptersAddresses() in a loop. 2023-09-06 11:10:26 +02:00
Hans Leidekker 3f9f4a4a0e ipconfig: Use CRT allocation functions. 2023-09-06 11:10:26 +02:00
Alex Henrie 859d5e68dd cmd: Handle if exist with an empty string argument.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55505
2023-09-04 20:41:54 +02:00
Dmitry Sokolov 7e4715149a cmd: Fixed var substring in 'enableDelayedExpansion' mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55402
2023-08-25 22:52:42 +02:00
Akihiro Sagawa 322c175cf0 cmd: DIR command outputs free space for the path.
When the path contains a mountpoint on Unix or a junction point to
another drive on Windows, cmd.exe should show free space for the
path instead of the root of the drive.
2023-08-24 16:44:26 +02:00
Akihiro Sagawa 91de94ab99 cmd: Use towlower()/towupper() for WCHARs.
Found with Coccinelle.
2023-08-24 16:44:26 +02:00
Piotr Caban 707d299da6 wmic: Fix output when redirected to pipe. 2023-08-22 21:01:22 +02:00
Piotr Caban 846d164092 wmic: Use fwprintf to output error messages. 2023-08-22 21:01:22 +02:00
Alex Henrie f339506f4f find: Use CRT allocation functions. 2023-08-18 18:31:32 +02:00
Alex Henrie c27f8f72d1 cmd: Introduce an option_equals helper for WCMD_parse_forf_options. 2023-08-17 10:40:37 +02:00
Jacek Caban a1d429dabd cscript: Build as CUI application. 2023-08-16 21:19:47 +02:00
Maxim Karasev aa3beb88b3 whoami: Refactor and add more commands.
Particularly it implements '/logonid' and '/user' options,
as well as adds stubs for '/upn' and '/fqdn'.
2023-08-14 17:53:17 +02:00
Hans Leidekker 0a880e5706 klist: Match native output for encryption type. 2023-07-31 18:23:21 +09:00
Piotr Caban 93736efa80 services: Exit early in process_send_start_message if ConnectNamedPipe fails.
HasOverlappedIoCompleted returns true after CancelIo call.
2023-07-21 21:27:44 +02:00
Maxim Karasev c29dc0064e klist: Add a program that lists Kerberos tickets.
It's a clean-room reimplementation that mimics Windows 10 program's output format.
It prints all the information that is available via KerbQueryTicketCacheMessage.

Also tested to work on Windows if dynamically linked + built with winegcc.

For further extension of the functionality, implementing
KerbQueryTicketCacheEx{,2,3}Message is required.
2023-07-21 21:27:44 +02:00
Petrichor Park 100504d2f5 notepad: Use GetDpiForWindow().
Instead of querying the registry, just calls `GetDpiForWindow`.

Winecfg's DPI slider sets `Control Panel\\Desktop\\LogPixels`.
See `programs/winecfg/x11drvdlg.c`
Notepad queries `Software\\Fonts\\LogPixels`, and so doesn't pick up
on the change.
2023-07-19 10:44:51 +02:00
Eric Pouech 10aaff9245 conhost: Fix ctrl-c handling.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55197
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-07-13 11:51:41 +02:00
Billy Laws b233cfb33e wineboot: Always attempt setup for all machine types.
Without this, wineboot would bail out on ARM64 in the case where x86_64 WOW is
not available but i386 is. Leaving an incomplete prefix without any clear error.
2023-07-11 20:28:35 +02:00
Eric Pouech fdd1c1c776 winedbg: Detect debuggee termination before first exception.
When a crash in a program happens, and the debugger in launched in --auto
mode, in some cases the program terminates before the debugger has gotten
proper context on debuggee.
(Could be a watchdog in programs checking if it's debugged and terminating
itself if so).

Detect debuggee termination and still provide some information on debuggee
(threads, modules, system info). The backtrace will not be available as
no exception is gotten from debuggee.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55187
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-07-07 12:20:23 +02:00
Eric Pouech 7ada0e2239 winedbg: Add 'info system' command.
Letting the information displayed in '--auto' mode be available
as a command.
Simplify a bit the --auto mode handling.

Note:
- the WOW64 status of the debuggee used to be printed in system
  information, which is a bit ackward as system info shouldn't be
  tied to a given process.
- replaced it with supported guest machines (for the record, a
  64-bit only setup incorrectly returns i386 as supported guest;
  I guess we shouldn't care).
- now printing the wow64 status of a process when displaying an
  exception information instead.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-07-07 12:19:42 +02:00
Eric Pouech bde065746e winedbg: Cache wow64 status inside struct process.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-07-07 12:19:42 +02:00
Alex Henrie eba7092f0a cmd: Allow numbered redirects at the beginning of a line.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55124
2023-07-05 21:08:33 +02:00
Kevin Schmidt 29b29eddcc taskmgr: Use macro for the color black too. 2023-07-04 21:00:12 +02:00
Mohamad Al-Jaf 95ea605b10 pnputil: Add stub program.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55178
2023-07-03 22:15:42 +02:00
Alex Henrie 3d383c468b regedit: Fix memory leak on error path in RenameKey (scan-build).
parentPath is allocated before parentKey.
2023-06-29 13:57:39 +02:00
Rémi Bernon 467201a85b explorer: Fix command-line parameter parsing.
Fixes: 5b11157ecf
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55141
2023-06-29 12:04:07 +02:00
Rémi Bernon 7255f63a65 explorer: Set virtual desktop primary adapter display settings.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55146
2023-06-28 18:58:39 +02:00
Rémi Bernon 99ef2dc4e1 explorer: Rename initialize_display_settings local variable.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55146
2023-06-28 18:58:39 +02:00
Rémi Bernon 0e5b847f85 explorer: Use debugstr_devmodew helper to trace display mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55146
2023-06-28 18:58:39 +02:00
Rémi Bernon 5b11157ecf explorer: Use wide string literals. 2023-06-26 16:47:11 +02:00
Rémi Bernon 43fd81b3a5 explorer: Use unprefixed debug macros. 2023-06-26 16:47:11 +02:00
Rémi Bernon 240bdd5772 explorer: Use CRT allocation functions. 2023-06-26 16:47:11 +02:00
Maarten De Braekeleer 5e2f9996ba cmd: Fix 'if exist' with a directory/ as a parameter.
'if exists' takes a parameter which can be directory, directory/,
directory/. directory\ or directory\. for example, and should equate
to true if the directory exists. The syntax directory\ is explicitly
rejected by FindFirstFile and hence was not working - look for this
specific case, and if found append a '.'.

Follow-up commit of bc9d68bcbe

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55130#add_comment
2023-06-26 16:44:17 +02:00
Liam Middlebrook 0911d462f9 cmd: Fix empty strings between PATH separators.
Previously if an empty string was encountered while parsing out PATH,
cmd.exe would ignore the rest of the PATH entirely.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55097
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
2023-06-21 18:25:48 +02:00
Liam Middlebrook 9aee47f7f6 cmd/tests: Add tests for PATH separator.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55097
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
2023-06-21 18:25:38 +02:00
Alexandre Julliard c938f92e4c wordpad: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alexandre Julliard 35299b39cb winhlp32: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alexandre Julliard 6c9246e022 winemenubuilder: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alexandre Julliard 63f94c4925 winefile: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alexandre Julliard f20710d9b3 winedbg: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alexandre Julliard 4368bd8e60 winecfg: Use nameless unions/structs. 2023-06-20 15:58:05 +02:00
Alex Henrie 2455229549 conhost: Use correct pointer type in edit_line_transpose_words (scan-build). 2023-06-19 17:42:16 +02:00
Alexandre Julliard f5784e2fd1 services: Use nameless unions/structs. 2023-06-16 17:58:37 +02:00
Alexandre Julliard c2d1c8dcd3 regedit: Use nameless unions/structs. 2023-06-16 17:58:16 +02:00
Alexandre Julliard 5d9ea809da oleview: Use nameless unions/structs. 2023-06-16 17:58:03 +02:00
Alexandre Julliard 52a868a8fe netstat: Use nameless union/structs. 2023-06-16 17:57:36 +02:00
Alexandre Julliard e3664fa8ad ipconfig: Use nameless union/structs. 2023-06-16 17:57:24 +02:00
Alexandre Julliard 14518662d6 explorer: Use nameless union/structs. 2023-06-16 17:57:11 +02:00
Alexandre Julliard 2e58c9e060 conhost: Use nameless union/structs. 2023-06-16 17:56:55 +02:00
Alex Henrie 3caa27eafb wusa: Zero out identity on error path in read_identity.
Fixes double frees in read_components and read_dependency. The double
frees could also be fixed by using free instead of free_dependency in
those functions, but zeroing out the pointers is easier to understand
because it ensures that alloc_dependency can always be paired with
free_dependency.
2023-06-16 10:30:21 +02:00
Alexandre Julliard 93630ce14e include: Remove redundant __WINE_USE_MSVCRT checks. 2023-06-12 21:21:41 +02:00
Alex Henrie 6c1157435a regedit: Fix memory leak on error path in GetItemPath (scan-build). 2023-06-08 12:04:23 +02:00
Alex Henrie 8b54c2e35d conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build). 2023-06-05 14:01:07 +02:00
Alex Henrie 935626b488 wusa: Fix double free on error path in read_update_package (scan-build).
If read_identity returns FALSE, it has already called clear_identity.
2023-06-05 14:01:07 +02:00
Rémi Bernon 4b5311c7e0 explorer: Remove now unnecessary wine_create_desktop entry. 2023-05-30 13:45:47 +02:00
Rémi Bernon f7d45533d1 explorer: Call user driver through a new CreateDesktop callback. 2023-05-30 13:45:43 +02:00
Rémi Bernon 0edc848bee explorer: Don't call driver create_desktop if desktop name is "root". 2023-05-30 13:45:42 +02:00
Rémi Bernon dbb63987f0 explorer: Use root window if driver doesn't implement create_desktop. 2023-05-30 13:45:42 +02:00
Rémi Bernon f9c1b6af12 explorer: Load graphics driver before calling CreateDesktopW. 2023-05-30 13:45:42 +02:00
Alexandre Julliard 0b23d22bd6 start: Implement the /machine option. 2023-05-24 15:43:54 +02:00
Alexandre Julliard 850e3bcc5d start: Use CRT allocation functions. 2023-05-24 15:43:54 +02:00
Alexandre Julliard df0483aa9b start: Add a separate helper to parse command line options. 2023-05-24 15:43:54 +02:00
Alexandre Julliard 4ae7de5bf7 start: Move memory allocation into parse_title(). 2023-05-24 15:43:54 +02:00
Davide Beatrici f266dc094a explorer: Fix uninitialized variable warning.
programs/explorer/desktop.c:104:16: warning: ‘hres’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  104 |         return hres;
      |                ^~~~
2023-05-23 22:36:50 +02:00
Jactry Zeng 996271fc2f wordpad: Resize buttons of toolbar to make them align with height of the font list combox.
The current size set to these buttons is too small when in HiDPI.
2023-05-12 17:50:49 +02:00
Olivier F. R. Dierick 60ef0f8677 dxdiag: Ignore option /64bit on the commandline.
The builtin dxdiag doesn't know about option /64bit and display an
error dialog. Some games use that option internally on startup and the
dialog is annoying.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49964
2023-05-08 20:01:42 +02:00
Alex Henrie 9d80b367ce winemenubuilder: Skip desktop integration for certain associations.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41275
2023-05-02 20:02:20 +02:00
Zhiyi Zhang f88affa2a1 findstr: Add basic functionality.
Company of Heroes: Battle of Crete needs a functioning findstr.exe to exit properly.
Freemake Video Converter 4.1 installer also needs this.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=35254
2023-05-02 13:33:07 +02:00
Zhiyi Zhang db0ccc440a tasklist: Partially support '/fi' option.
Some filters such as STATUS and CPUTIME are not implemented.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48596
2023-05-02 13:33:07 +02:00
Zhiyi Zhang 397ce0dbf2 tasklist: Support '/fo' option. 2023-05-02 13:33:06 +02:00
Zhiyi Zhang 8238c1d48f tasklist: Support '/nh' option. 2023-05-02 13:33:06 +02:00
Zhiyi Zhang 62af0b5f84 tasklist: Add basic functionality.
Company of Heroes: Battle of Crete needs a functioning tasklist.exe to exit properly.
2023-05-02 13:33:03 +02:00
Eric Pouech f01ce56a49 winedbg: Improve size management in watch command.
- support 8 byte targets
- default to CPU pointer size if size isn't present nor supported.
- detect unaligned requests

Signed-off-by: Eric Pouech <eric.pouech@codeweavers.com>
2023-04-18 18:18:19 +02:00
Eric Pouech adde76fabd winedbg: Simplify watch command implementation.
This also correctly initialize some lvalue.
Context of the bug has changed, but the underlying issue remained the same.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39495
Signed-off-by: Eric Pouech <eric.pouech@codeweavers.com>
2023-04-18 18:18:16 +02:00
Eric Pouech 812b4b1ca3 dbghelp: Use source file path as stored in debug info format.
Currently, dbghelp returns the source file either:
- in DOS format when native module option isn't enabled
- as stored in debug info format otherwise

This used to work for PE modules inside ELF shared libraries but is broken
since evolution to REAL modules. This generates several issues:
- winedbg does not always set the native module option when calling dbghelp
  for source file related functions, leading to heterogenous output to user
- some dbghelp function rely on matching source paths, hence leading to
  errors in winedbg when mixing the two formats for the same source file.

Introduce a new Wine only dbghelp option to return the source paths as they
are stored inside debug information format, and activate it unconditionaly
inside winedbg.

This fixes some failure cases of command 'break <NN>' in winedbg.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-04-18 18:17:44 +02:00
Eric Pouech fd87ddfae7 winedbg: Let 'break symbol : line' command work again.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-04-18 18:17:44 +02:00
Francois Gouget 8d2146934c iphlpapi: Fix the GAA_FLAG_INCLUDE_GATEWAYS constant name. 2023-04-10 14:18:00 +02:00
Eric Pouech 24069aad30 winedbg: Don't crash when no search path has been set.
Note: it's anyway wrong to search source files inside modules' path
(a proper fix will require revisiting source file handling).
This fix will actually be sufficient when running wine from within
its build tree.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-04-05 15:24:41 +02:00
Hugh McMaster 887aa70e08 kernelbase: Implement GetConsoleOriginalTitleW(). 2023-04-03 16:52:01 +02:00
Hugh McMaster 6891faf454 conhost: Save original console title on initialization. 2023-04-03 16:52:01 +02:00
Zebediah Figura 3cb0b6c3f3 winedevice: Use the ntoskrnl channel. 2023-03-31 19:10:38 +02:00
Paul Gofman c0c68ee83a services: Change running service state once its process dies. 2023-03-30 18:49:16 +02:00
Paul Gofman 3580d466cc services: Factor out notify_service_state() function. 2023-03-30 18:49:16 +02:00
Paul Gofman 466a86bc54 services: Create service processes in a job. 2023-03-30 18:49:16 +02:00
Mohamad Al-Jaf 3503ab4e94 winecfg: Add an option to set WinRT app dark theme. 2023-03-29 22:29:38 +02:00
Paul Gofman fb6b1c91bb taskkill: Support terminating child processes. 2023-03-29 22:29:32 +02:00
Paul Gofman 5c85145189 taskkill: Mark processes for termination in main(). 2023-03-29 11:50:58 +02:00
Paul Gofman 6cca1f5099 taskkill: Use toolhelp snapshot to get process information. 2023-03-29 11:50:58 +02:00
Paul Gofman 62ef3c5be1 taskkill: Factor out get_task_pid(). 2023-03-29 11:50:58 +02:00
Paul Gofman cf4a0b7392 taskkill: Enumerate processes in main(). 2023-03-29 11:50:58 +02:00
Paul Gofman 20ab5f06d0 taskkill: Remove unneeded free() before process exit. 2023-03-29 11:50:58 +02:00
Paul Gofman dd3f3f381f taskkill: Use CRT allocation functions. 2023-03-29 11:50:58 +02:00
Francois Gouget a2d5644797 schtasks/tests: Verify that the task folders are correctly deleted. 2023-03-27 17:43:41 +02:00
Francois Gouget 739c5c547c schtasks/tests: Deleting folders requires elevated privileges on Windows 7 & 8.
This means skipping any test that requires creating a task as the test
would be unable to clean up after itself.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=52193
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54634
2023-03-27 17:43:37 +02:00
Alexandre Julliard 9e8fbdab72 wineboot: Add processor features for supported WoW64 architectures on ARM64. 2023-03-15 14:57:51 +01:00
Alexandre Julliard e3e0c3a91a wineboot: Use the SystemProcessorBrandString query instead of cpuid. 2023-03-14 17:38:51 +01:00
Hugh McMaster 1a61a4e1a6 regedit: Append '.reg' file extension if necessary. 2023-03-09 18:12:49 +01:00
Hugh McMaster f5fe9a6cf9 regedit: Allow export_key() to return TRUE.
We don't handle errors in export_registry_data() anyway.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54491
2023-03-09 18:12:47 +01:00
Rémi Bernon 992d60e122 explorer: Use GUID_NULL display device GUID for nulldrv. 2023-03-03 18:29:54 +01:00
Alexandre Julliard 1774db388b winedbg: Use the Zydis library for disassembly. 2023-02-27 16:36:22 +01:00
Alexandre Julliard 297f7cb37e winefile: Use standard va_list instead of __ms_va_list. 2023-02-20 08:40:27 +01:00
Alexandre Julliard dbfeb4b7f4 taskmgr: Use standard va_list instead of __ms_va_list. 2023-02-20 08:40:14 +01:00
Alexandre Julliard b19d3e779b start: Use standard va_list instead of __ms_va_list. 2023-02-20 08:40:02 +01:00
Alexandre Julliard d244f902b3 oleview: Use standard va_list instead of __ms_va_list. 2023-02-20 08:39:42 +01:00
Alexandre Julliard e1f1846611 notepad: Use standard va_list instead of __ms_va_list. 2023-02-20 08:39:31 +01:00
Alexandre Julliard 9efe1a32a2 conhost: Use standard va_list instead of __ms_va_list. 2023-02-20 08:39:18 +01:00
Francois Gouget dfcc45cc17 winetest: Trace the keyboard layout.
It is important for the input tests so add it to the global locale
information.
2023-02-17 18:59:29 +01:00
Francois Gouget cac02872c6 winetest: Avoid an infinite loop in vstrfmtmake() when the format is NULL.
When the format is NULL vsnprintf() always returns -1 so we keep
doubling the allocated memory until running out of memory.
2023-02-14 09:57:07 +01:00
Francois Gouget b07129bad4 winetest: Don't use plain strings as format specifiers.
When they contain a percent character they would, at best, not be
printed correctly, and at worst cause a crash.
2023-02-14 09:57:07 +01:00
Alex Henrie fae940df23 wineboot: Avoid calling RtlInitUnicodeString on a static constant. 2023-02-13 15:54:40 +01:00
Alex Henrie dccc6a60b6 services: Avoid calling RtlInitUnicodeString on a static constant. 2023-02-10 19:09:16 +01:00
Alex Henrie a6f3e4ad22 winhlp32: Fix memory leak on realloc failure in HLPFILE_RtfAddBitmap (cppcheck). 2023-02-07 17:46:55 +01:00
Eric Pouech 234943344f winedbg: Don't expose module whose machine isn't the process' one to gdb.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-06 22:34:44 +01:00
Eric Pouech 71dbcbce26 winedbg: Handle multi-machine process in command 'info share'.
- filter out native machine on wow64 configuration.
- add option to info share to print all modules.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-06 22:34:44 +01:00
Eric Pouech 7077c5bcab conhost: Only update font when running with a window.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54449
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-06 22:34:44 +01:00
Brendan Shanks fe6294c743 taskkill: Use exit code 1 when terminating processes. 2023-02-02 10:56:34 +01:00
Brendan Shanks 2da1126021 taskmgr: Use exit code 1 when terminating processes. 2023-02-02 10:56:32 +01:00
Hans Leidekker 3a819255f5 winecfg: Fix CurrentVersion registry string for Windows 10 and up.
It no longer reflects the real OS major and minor version numbers.
2023-02-01 17:11:47 +01:00
Hans Leidekker 69154f0329 ntdll: Default to Windows 10. 2023-02-01 17:11:47 +01:00
Hans Leidekker 2ccc2a42d7 ntdll: Add Windows 11 version. 2023-02-01 17:11:47 +01:00
Eric Pouech 433bc12709 winedbg: Fix read access to variables with thread local storage.
No longer relying on loaded module info (getting index address out of
PE image, and caching it in struct dbg_module).

Co-authored-by: Evan Tang <etang@codeweavers.com>
2023-01-26 22:05:13 +01:00
Eric Pouech 224b33c2be winedbg: Track loaded modules.
Co-authored-by: Evan Tang <etang@codeweavers.com>
2023-01-26 22:05:13 +01:00
Eric Pouech e8c7920919 conhost.exe: Handle ctrl-\ in Wine.
Let conhost handle ctrl-\ instead of Unix tty, and pretend it's a
ctrl-pause/break key stroke.  This allows CUI application in processed
input mode not to close upon ctrl-\.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54141
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-25 10:04:02 +01:00
Eric Pouech fda954dfd4 conhost.exe: Handle ctrl-pause/break key strokes.
Note: this patch should be extended by adding insertion
of the CTRL_BREAK_EVENT into processes' crtl handler
(as it's done for CTRL_C_EVENT).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-25 10:04:00 +01:00
Eric Pouech 5fc54e3219 winedbg: Use debuggee's bitness for 'examine /a' command.
Also fixes stack dump in crash summary and 'info stack' command.
(We were using debugger's bitness instead).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 20:14:52 +01:00
Eric Pouech a89975f731 dbghelp: Expose the real path to the module in SymGetModuleInfo*().
Expose the real path of a loaded module (potentially read from
WINEDLLDIR or WINEBUILDDIR or overriden load order or ...).  This
improves gdb integration by passing the real path to the loaded
modules (instead of the paths in c:\windows\ system subdirectories).
Introduce new Wine only dbghelp's extended option to enable the
feature.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54250
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:25:58 +01:00
Eric Pouech 3055653c1e winedbg: Pass loaded image's file handle to dbghelp.
In some cases (running from build tree, overriding load order...), the
path to the module from the load DLL debug event isn't the real path
to the loaded module. So pass the handle to loaded module's image from
winedbg to dbghelp (to avoid image lookup).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54250
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:24:13 +01:00
Rémi Bernon 03aa9e13e7 services: Use a separate allocation for NotifyParamsArray[0].params.
The pointer might be freed by RPC NdrPointerFree, which will try to use
a dedicated free call for the array elements, and fail.
2023-01-24 18:15:41 +01:00
Gabriel Ivăncescu 929fdbbf55 notepad: Fix uninitialized upper 64-bits of pos in DoFind.
And get rid of the hacky casts.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-18 22:55:19 +01:00
Eric Pouech ec05c03463 conhost: Initialize color_map when creating an alternate screen buffer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54287
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-11 14:27:58 +01:00
Eric Pouech 8993f5720a conhost: Reset console attribute upon exit in unix mode.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-11 14:27:54 +01:00
Hugh McMaster 0e6b21ef1d conhost: Migrate from FontPitchFamily to FontFamily.
To ensure a seamless transition between value names, we try loading the
registry value from FontFamily first and FontPitchFamily second.

Any changes to the console font family are saved to the new value name.
2023-01-11 11:54:16 +01:00
Jinoh Kang 36ca172e85 regedit: Clip siblings when drawing list and tree views. 2023-01-06 10:41:21 +01:00
Jinoh Kang 8242b65172 regedit: Use the default WM_PAINT implementation for REGEDIT window. 2023-01-06 10:41:21 +01:00
Eric Pouech af215210f0 kernel32/tests: Skip some console tests on w1064v1909.
We get conhost.exe:tty failures on testbot:
- not for version prior to w1064v1909 (these tests require
  pseudo-consoles, which are not implemented in these Windows
  version).
- for w1064v1909
- not for W10 versions after w1064v1909.

So, we assume that pseudo-console support is immature in this
Windows version: skip all the remaining test at the first
discrepancy point.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53465
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-21 18:24:39 +01:00
Eric Pouech 0a7c04816f conhost: Don't print control characters for Unix tty.
They will be reinterpreted by Unix tty, leading to wrong display.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Eric Pouech a922577986 winedbg: Avoid passing a non allocated buffer to HeapFree.
Latest changes to heap management can lead to a crash in this situation.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-09 17:52:25 +01:00
Alex Henrie 5792785879 cmd: Use standard C functions for memory allocation. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 57c58be77d winedbg: Fix printf format warnings on ARM platforms. 2022-12-08 18:11:23 +01:00
Alex Henrie 33ae61d79b winhlp32: Use standard C functions for memory allocation. 2022-12-07 20:27:26 +01:00
Eric Pouech cd0e949519 wineconsole: Set launched process name as created console title.
wineconsole was setting created console's title to '????\wineconsole.exe'.
This was preventing conhost to load its configuration according to
first running command path.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-05 20:04:54 +01:00
Alex Henrie b8b55de629 winecfg: Annotate allocation functions with __WINE_(DEALLOC|MALLOC). 2022-12-05 20:04:54 +01:00
Alex Henrie 1f4532d5c6 winecfg: Use standard C functions for memory allocation. 2022-12-05 20:04:54 +01:00
Alex Henrie 6136b54757 services: Use standard C functions for memory allocation. 2022-12-01 10:24:10 +01:00
Eric Pouech f2ca35bd80 cmd: Use OEM code page when reading a file.
Calling GetConsoleCP() when ReadConsoleW() fails (potentially indicating
that cmd.exe's instance isn't attached to a console) makes no sense.

In details, since GetConsoleCP() returns 0 when not attached to a console
to indicate error, we're in fact using CP_ACP.

So fallback explicitely to OEM CP (which is the default for CUI programs).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-25 18:09:57 +01:00
Rémi Bernon 1c30f7803c winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree. 2022-11-25 18:09:57 +01:00
Paul Gofman eec6aea10a wmic: Support array of BSTRs in convert_to_bstr(). 2022-11-24 22:20:20 +01:00
Paul Gofman e3d7a3e3f6 wmic: Add nicconfig alias. 2022-11-24 22:20:20 +01:00
Paul Gofman 97b9d8ddbe wmic: Handle VariantChangeType() failures.
wmic currently crashes on, e. g., VT_EMPTY or VT_ARRAY types returned.
2022-11-24 22:20:20 +01:00
Paul Gofman 85b84a949c wmic: Call _BeginEnumeration() before iterating class object.
Otherwise enumeration fails on Windows.
2022-11-24 22:20:20 +01:00
Paul Gofman 6412b3dc3a wmic: Don't set WBEM_FLAG_FORWARD_ONLY flag on query.
The result access is not forward only.
2022-11-24 22:20:20 +01:00
Rémi Bernon f810a57590 rpcss: Use I_Rpc(Free|Allocate) in MIDL_user_(allocate|free).
In ept_map, rpcss uses TowerConstruct to allocate tower array elements.

The array is later released by the generated stub code, and each element
is ultimately freed using MIDL_user_free.

TowerConstruct always allocate memory using I_RpcAllocate, we must use
I_RpcFree to free it.
2022-11-23 17:59:47 +01:00
Alex Henrie dab61cdcd1 explorer: Put the calling convention inside the function pointer parentheses.
As required by MSVC.
2022-11-22 18:27:30 +01:00
Zhiyi Zhang 8459a5272a explorer: Use a valid taskbar position when the taskbar is hidden.
Some applications use FindWindowA() with class Shell_TrayWnd to find the taskbar window on Windows.
Then GetWindowRect() is called to get the taskbar window rectangle. Finally, the taskbar window
rectangle is subtracted from the primary screen rectangle to calculate the work area. Without a
valid taskbar window position, these applications end up getting an incorrect work area and going
down the wrong path. So use the same position and size as the host system panel for explorer taskbar
when it's hidden.
2022-11-17 10:00:24 +01:00
Zhiyi Zhang b6818e2c20 explorer/tests: Add taskbar tests. 2022-11-17 10:00:24 +01:00
Eric Pouech 8f1febc430 cmd: Don't write outside of variable array.
GCC 12.2 rightfully complains about an out-of-founds array access.
This can possibly happen for unsupported variable names.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-14 13:13:02 +01:00
Eric Pouech 41221452c8 winedbg: Don't use invalid address mode in exception prolog.
Removes a GCC 12.2 warning about printing NULL string.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-14 13:13:02 +01:00
Arkadiusz Hiler 92e4cad8e0 cmd/tests: Make sure for /f doesn't loop infinitely on NULs. 2022-11-10 09:48:30 +01:00
Eric Pouech e1c37c21da cmd: Use CRT file I/O function inside 'for /F' handling.
This allows:
- to mimic native behavior when a stray '\0' is present in file
  (in 'FOR /F' execution, it's interpreted as an EOF marker)
  (prevents an infinite loop)
- supports (with /USEBACKQ) unicode output (if BOM is present)

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53386
2022-11-10 09:48:23 +01:00
Alex Henrie 08ec06da54 uuid: Add propkey.h.
Needed to compile Tera Term.
2022-11-08 20:07:51 +01:00
Mohamad Al-Jaf 21ae94d437 certutil: Add stub program.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53086
2022-11-07 21:16:10 +01:00
Mohamad Al-Jaf 82e8d6036f setx: Add stub program.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53755
2022-11-07 21:16:10 +01:00
Alex Henrie 212e319dce cmd: Use the wcsrev function instead of reimplementing it. 2022-11-04 19:23:55 +01:00
Alex Henrie 6ee8f819cf cmd: Remove inapplicable comment from WCMD_getfileowner. 2022-11-04 19:23:55 +01:00
Zhiyi Zhang 957dfccb14 winecfg: Adjust top-level window rectangles after theme changes.
Manual tests show that calling EnableTheming() in uxtheme.dll doesn't update window sizes. So
it seems more appropriate to do it in winecfg.exe.
2022-11-02 17:19:44 +01:00
Zhiyi Zhang 982c9974a7 winecfg: Use SM_CYSIZE to set and get caption height.
After applying a theme with CaptionBarHeight set, caption height from SPI_GETNONCLIENTMETRICS is set
to the specified size. However in refresh_sysparams(), the caption height is refreshed and the value
from SM_CXSIZE is used and ends up overwriting the theme specified caption height. SM_CYSIZE is the
correct index instead of SM_CXSIZE.

You may need to turn a theme off and on for the correct caption height to take effect after the fix.
2022-11-02 17:19:42 +01:00
Eric Pouech 9317a331f1 conhost/tests: Fix some conditions on tty test termination.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-01 20:46:23 +01:00
Alexandre Julliard 6a91264918 makefiles: Store PE objects in subdirectories in the build tree.
This will make it possible to build multiple PE architectures.
2022-10-26 15:03:05 +02:00
Eric Pouech 5a8350120c conhost/tests: Fix some tests on input sequences.
Correctly handling keyboards (French, German...) which report right-alt
as ctrl+alt in VkKeyScan().

Splitting escape_test input tests into pure virtual keys on one hand,
and modified char key on the other.
Generating the virtual codes for the later instead of hardcoding the
results (bound to generic US keyboard).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52980
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-24 18:50:36 +02:00
Eric Pouech bdad6f2c85 conhost/tests: Fix tests for some keyboard layouts.
Some keyboards (French, German and some others) report the right alt key
(which is some cases the right-shift one) as ctrl+alt.
Add proper handling for ctrl+alt return from VkKeyScan().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52980
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-24 18:50:29 +02:00
Francois Gouget 75e8f4edb7 winetest: Let the get_subtests() caller report errors.
The caller already analyses get_subtests() errors and provides
a detailed error message in the information section of the report
so the report(R_ERROR) pop up / stderr message is redundant.
2022-10-20 18:29:59 +02:00
Alexandre Julliard 46f307073e ngen: Add version resource.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53773
2022-10-11 18:40:37 +02:00
Eric Pouech c19f3b620a conhost: Fix tests on ReadConsole with CONSOLE_READCONSOLE_CONTROL.
It should fix the errors around line 1370 in conhost/tests/tty.c, but
it doesn't fix other errors around line 1530 and 1550 which are
completly unrelated to this change.  So failures to be expected on the
latter.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52648
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-10 11:22:23 +02:00
Hugh McMaster 627f2b3557 kernelbase: Return full title length from GetConsoleTitle(). 2022-10-10 11:19:44 +02:00
Eric Pouech 001665d735 winedbg: Enhance printing of variables or fields.
Prints 'int a[10]' (instead of 'int[10] a').
Ditto for variables/fields of type function pointer.

And for pure type printing, no longer prints --none-- for
arrays and function pointers.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-30 21:20:28 +02:00
Rémi Bernon 4c60f67f00 regedit: Add a direct import for shcore.
For CommandLineToArgvW.
2022-09-30 18:34:22 +02:00
Rémi Bernon 99b3862e67 regedit: Call InitCommonControls after command-line has been processed.
Avoid triggering the load of comctl32 early.
2022-09-30 18:34:20 +02:00
Jacob Czekalla 377481180e notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
Jacob Czekalla 799c24aa81 notepad: Track and display line number and column. 2022-09-14 22:38:34 +02:00
Jacob Czekalla dd3fa4e9ef notepad: Show status bar. 2022-09-14 22:38:34 +02:00
Alexandre Julliard 657cdc1861 winetest: Report failure for tests that print too much output. 2022-09-14 22:38:34 +02:00
Alexandre Julliard 12bf088ac0 winetest: Don't require an email if we have a URL. 2022-09-13 16:22:21 +02:00
Nikolay Sivov ebbdbff50e ping: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-09 23:21:40 +02:00
Nikolay Sivov 470232744d msidb: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-09 23:21:40 +02:00
Alexandre Julliard 0f96288080 winetest: Report success if the report has been submitted successfully. 2022-09-08 20:36:33 +02:00
Alexandre Julliard 1bc6b9622f winetest: Add extra quiet mode that only outputs data for failed tests. 2022-09-07 20:07:18 +02:00
Alexandre Julliard 4b590b212d winetest: Add helper functions for temp file handling. 2022-09-07 20:07:18 +02:00
Alexandre Julliard dbb55ed91a makefiles: Add install-test target to install winetest.exe. 2022-09-07 20:07:18 +02:00
Alexandre Julliard 5fabd968d4 winetest: Exit with error 3 when there are test failures. 2022-08-16 22:27:50 +02:00
Alexandre Julliard 3deabed43d winetest: Disable the crash dialog in non-interactive mode. 2022-08-16 17:41:53 +02:00
Alexandre Julliard 6ae99e4da0 winetest: Support loading the list of tests from a file. 2022-08-16 17:41:53 +02:00
Alexandre Julliard 22aceb44e7 winetest: Use CRT allocation functions. 2022-08-16 11:57:39 +02:00
Eric Pouech 16bcc3bc29 winedbg: Synthetize pointer to type when not available.
This ensures that we always have a type as pointer to a known <type>
(either because it exists in <type>'s module, or it's synthetized inside
debugger).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-07-29 18:55:32 +02:00
Eric Pouech dd977e4a85 winedbg: Store result of types_get_info(TI_GET_TYPE) in dbg_type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-07-29 18:55:30 +02:00
Hugh McMaster b8b87e55a6 regedit: Limit REG_DWORD/REG_QWORD input length by value type and format. 2022-07-28 17:34:03 +02:00
Hugh McMaster e604f3e2ef regedit: Use zero as a REG_DWORD/REG_QWORD default if edit control is empty. 2022-07-28 17:34:03 +02:00
Brendan Shanks 2dba29a653 winedbg: Prefer thread name from GetThreadDescription() in GDB proxy mode. 2022-07-27 23:07:06 +02:00
Brendan Shanks f89c8be852 winedbg: Prefer thread name from GetThreadDescription() in 'info thread' listing. 2022-07-27 23:07:06 +02:00
Hugh McMaster 93199da8c3 regedit: Use zero as a default for REG_DWORD and REG_QWORD values. 2022-07-27 23:07:06 +02:00
Brendan Shanks d3b72d0ff1 winedbg: Implement GDB qGetTIBAddr query. 2022-07-27 22:36:31 +02:00
Hugh McMaster 57f45013d8 regedit: Free temporary buffer when working with REG_DWORD and REG_QWORD values. 2022-07-26 22:37:48 +02:00
Hugh McMaster 6901f3ccfc regedit: Update the listview item without reloading the value data. 2022-07-25 17:01:33 +02:00
Hugh McMaster d1bc3623e8 regedit: Set the dlgproc value name via a function, not a global. 2022-07-25 17:01:33 +02:00
Hugh McMaster 5e2c3dd537 regedit: Update binary data via update_registry_value(). 2022-07-25 17:01:33 +02:00
Eric Pouech 890e3baaba winedbg: Use CRT allocation functions.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-07-25 11:22:18 +02:00
Eric Pouech 674ef559e0 winedbg: Do proper error management when reallocating memory.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-07-25 11:22:12 +02:00
Hugh McMaster 97f10736db regedit: Use 'struct edit_params' with read_value().
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster becf11084f regedit: Pass updated REG_MULTI_SZ data via 'struct edit_params'.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster 72fced0236 regedit: Pass updated REG_SZ and REG_EXPAND_SZ data via 'struct edit_params'.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster b00a4b66b9 regedit: Use a separate dialog proc function for string data types.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Zhiyi Zhang c03409e9d7 shell32: Implement SHOpenFolderAndSelectItems().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39987
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 20:01:05 +02:00
Zhiyi Zhang 975b11be9c winefile: Use 10 DLUs for check box height.
10 DLUs is the recommended height for check boxes on Windows.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:54 +02:00
Zhiyi Zhang 24836f73b4 winecfg: Use 10 DLUs for check box height.
10 DLUs is the recommended height for check boxes on Windows. 8 DLUs is not enough and may cause
shrinking in HiDPI settings.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:53 +02:00
Zhiyi Zhang 9a98ad709f explorer: Fix memory leaks.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-14 21:00:54 +02:00
Hugh McMaster a6063f8367 regedit: Replace heap_x*() functions with malloc(), realloc() and free().
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-07 19:11:38 +02:00
Hugh McMaster 97a3802093 regedit: Directly use RegQueryValueExW() instead of a helper function.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-06 20:32:39 +02:00
Hugh McMaster 101fe51b25 regedit: Correctly calculate REG_MULTI_SZ size before reading from the buffer.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-06 20:32:39 +02:00
Hugh McMaster 159f3699ec regedit: Remove unneeded valueDataLen override for DWORD values.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-06 20:32:39 +02:00
Nikolay Sivov a2f8f5f93f wmic: Handle properly list for GET verb.
Instead of querying all properties and then matching to requested one,
first check if all requested properties are supported by given class.
Then select just that subset.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 19:06:12 +02:00
Nikolay Sivov f059013a41 winemsibuilder: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 5675994602 winepath: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov ee1f96ebfb wordpad: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov a0bef9f322 wscript: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 201ed0858f rpcss: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Hugh McMaster ab03ecf7bc regedit: Allow renaming of values in root keys.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-06-30 19:02:17 +02:00
Hugh McMaster e06a62049e regedit: Use correct printf specifier for UINT64 (QWORD) values.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-06-29 23:23:41 +02:00
Hugh McMaster 9c30f3d97a regedit: Pass correct data size when adding a new value via the GUI.
This bug was exposed by 3b1faf59f6

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-06-29 23:23:41 +02:00
Eric Pouech f8d3c2b203 winedbg: No longer hide current WineDbg process from 'info proc'.
We used to hide current WineDbg instance when displaying processes' list
(command 'info proc'). This can potentially generate some "dangling"
processes in the hierarchy (related to this WineDbg instance):
- conhost.exe
- start.exe (when launched from unix shell without full path
  to winedbg.exe)

Also, print a more comprehensive error message when trying to attach to
itself (now that debugger's PID is more easily available).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Stefan Dösinger 021eefdee0 winecfg: Support color profiles larger than MAX_PATH chars.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
2022-06-28 18:44:48 +02:00
Nikolay Sivov 4e39188c63 reg: Add REG_QWORD support to 'add'.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-27 22:58:21 +02:00
Jinoh Kang f815c2642e winedbg: Clarify options specific to GDB proxy mode.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-06-24 22:38:47 +02:00
Nikolay Sivov 208f631cee regedit: Remove unnecessary string conversion when modifying REG_DWORD value.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-24 10:41:27 +02:00
Nikolay Sivov 3b1faf59f6 regedit: Add support for REG_QWORD type.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-24 10:41:27 +02:00
Jinoh Kang beee5160a8 winedbg: Fix typos in manpage.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-06-20 10:37:59 +02:00
Rémi Bernon e2f7f01ac8 notepad: Avoid using pointer value after free.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-15 11:53:29 +02:00
Hugh McMaster 577258a981 conhost: Update debug output and comments when loading/saving settings.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-09 20:55:20 +02:00
Hugh McMaster 1c9c1ebc80 conhost: Show caret immediately after reshaping.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-09 20:55:20 +02:00
Jacek Caban d8a74e5cf9 explorer: Create clipboard manager thread when creating a desktop.
Based on winex11.drv. Drivers that don't implement ClipboardWindowProc entry point will disable it by failing to create the window.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-05-31 22:52:45 +02:00
Hugh McMaster 25f012edcb conhost: Don't prompt the user to save their app-specific settings.
On Windows, app-specific console settings are always saved to the
registry unless the user cancels the console properties dialog.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-30 22:07:42 +02:00
Hugh McMaster bb2b1d0ed1 conhost: Only save app-specific settings that differ from the defaults.
On Windows, app-specific subkeys of HKCU\Console only hold console
settings that differ from the global defaults.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-30 22:07:42 +02:00
Hugh McMaster 37bcbe6bca conhost: Save console settings as global defaults on first run.
On Windows, HKCU\Console holds global default settings, while subkeys
hold any app-specific settings that differ from the defaults.

Wine's conhost.exe implementation currently saves all console settings
to an app-specific subkey on the first run, while global defaults are
only saved to HKCU\Console if the user selects 'Set Defaults' from the
pop-up menu and saves new settings. This is the opposite of console
behaviour on Windows.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-30 22:07:42 +02:00
Hugh McMaster 303f8042f9 conhost: Set correct face name when the specified font is not available.
conhost.exe currently copies the user-specified face name from the
LOGFONT structure. This results in an invalid face name when the
specified font is not available.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-24 21:25:02 +02:00