Brendan Shanks
3af1e7df21
mountmgr: Replace some malloc/sprintf/strcpy calls with asprintf.
2024-03-11 21:22:08 +01:00
Brendan Shanks
a5b8e68422
mountmgr: Replace sprintf with snprintf to avoid deprecation warnings on macOS.
2024-03-11 21:22:08 +01:00
Alexandre Julliard
2c19fc3a3e
mountmgr: Remove DECLSPEC_HIDDEN usage.
2023-11-24 14:04:53 +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
aa15f41d04
makedep: Make the spec file optional for native modules.
2023-09-05 15:20:38 +02:00
Brendan Shanks
9139d8705d
mountmgr.sys: Ensure unixlib function tables and enum stay in sync.
2023-09-01 11:27:19 +02:00
Alexandre Julliard
99159c7a0b
mountmgr.sys: Use nameless union/structs.
2023-07-05 17:03:30 +02:00
Alex Henrie
3549ae75dd
mountmgr: Avoid calling RtlInitUnicodeString on a static constant.
2023-02-13 15:53:44 +01:00
Alistair Leslie-Hughes
90d50bc611
mountmgr.sys: Don't attempt to read from invalid media.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49615
2023-01-24 18:27:08 +01:00
Brendan Shanks
9207927d95
configure: Remove SystemConfiguration header check (always present on macOS).
2022-12-02 11:04:46 +01:00
Brendan Shanks
c8f9ee0bf0
configure: Remove DiskArbitration.framework check (always present on macOS).
2022-12-02 11:04:45 +01:00
Rémi Bernon
77d2f6ae74
mountmgr.sys: Allocate UNICODE_STRING buffers with RtlAllocateHeap.
2022-12-01 22:45:52 +01:00
Alex Henrie
61dc7de497
mountmgr: Use standard C functions for memory allocation.
2022-11-30 10:51:59 +01:00
Brendan Shanks
2d4b588afc
mountmgr.sys: Free wine_get_dos_file_name memory with HeapFree.
2022-11-29 21:33:58 +01:00
Alexandre Julliard
14d411b8a0
mountmgr.sys: Use the Unix call helpers.
2022-11-24 22:20:20 +01:00
Joel Holdsworth
7546b4a63d
mountmgr.sys: Implemented FileFsSizeInformation and FileFsFullSizeInformation volume queries.
...
This patch fixes GetDiskFreeSpaceA/W when an NT-style GUID volume path is
provided e.g. "\\?\Volume{00000000-0000-0000-0000-000000000043}\" as might be
retrieved by FindFirstVolumeA/W and FindNextVolumeA/W.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53547
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-09-01 17:49:33 +02:00
Alexandre Julliard
3110b72e12
mountmgr: Don't crash if connecting to dbus fails.
2022-08-17 16:45:57 +02:00
Tim Clem
6c465ae8ef
mountmgr.sys: Always set the return size from dhcp_request implementations.
...
Also return STATUS_SUCCESS rather than 0 in early-out cases.
Signed-off-by: Tim Clem <tclem@codeweavers.com>
2022-07-05 22:23:18 +02:00
Alexandre Julliard
194e09baec
makefiles: Add separate variables for Unix flags and libraries.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Rémi Bernon
808d4a77f7
mountmgr.sys: Avoid passing a stack pointer to the run_loop thread.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:35:44 +02:00
Huw Davies
1c04073772
mountmgr: Fix long type warnings on macOS.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:53:09 +01:00
Eric Pouech
9035f66c68
mountmgr.sys: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-14 11:04:19 +01:00
Huw Davies
02b9dee237
mountmgr: Fix long type warning.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-02 18:43:10 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
ae2693e2c4
include: Use long type by default in GUID definition.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:07 +01:00
Alex Henrie
656d7f58a1
mountmgr: Change scope of variable pvd in VOLUME_GetSuperblockLabel (cppcheck).
...
The data in pvd was being accessed through the label_ptr variable after
pvd went out of scope.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-20 21:16:42 +01:00
Paul Gofman
b65ed8fa9b
mountmgr.sys: Avoid use after free in dhcp4_config_request().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-14 20:56:09 +01:00
Alexandre Julliard
e5d69d9ee6
configure: Assume that sys/ioctl.h is available on Unix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:51 +01:00
Alexandre Julliard
5554c847e1
mountmgr: Use the ntdll Unicode string functions instead of wine/unicode.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 22:07:20 +01:00
Alexandre Julliard
f98d956e52
mountmgr: Use wide character string literals.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-29 23:25:46 +01:00
Alexandre Julliard
406309e133
mountmgr: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-29 23:25:46 +01:00
Alexandre Julliard
fd5acd68b0
mountmgr: Move the macOS device access check to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-29 23:25:46 +01:00
Alexandre Julliard
e54f6d8f8f
mountmgr: Move the macOS credentials support to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-29 23:25:44 +01:00
Alexandre Julliard
236a1bc8f0
mountmgr: Move the DiskArbitration support to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 18:07:30 +01:00
Alexandre Julliard
95615a4afb
mountmgr: Move the DBus support to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 18:07:30 +01:00
Alexandre Julliard
c210a0e607
mountmgr: Return a Unix file name in the IOCTL_MOUNTMGR_QUERY_SYMBOL_FILE request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 18:07:30 +01:00
Alexandre Julliard
9d293a1e9b
mountmgr: Put the Unix helpers in a separate Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 21:19:45 +01:00
Alexandre Julliard
af7b364a28
mountmgr: Move the macOS credentials support to a separate file.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 21:19:45 +01:00
Alexandre Julliard
086e9e0eda
mountmgr: Add some helpers to abstract the Unix calls from mountmgr.c.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 18:21:55 +01:00
Alexandre Julliard
9c587c5099
mountmgr: Add some helpers to abstract the Unix calls from device.c.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 18:21:55 +01:00
Alexandre Julliard
88cde9e717
mountmgr: Pass the SCSI device information when creating a volume.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 12:38:59 +01:00
Alexandre Julliard
37b7259f07
mountmgr: Remove the obsolete libhal support.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 12:38:59 +01:00
Alexandre Julliard
dbe3269c9d
mountmgr: Pass a Unix interface name in the dhcp_request_params ioctl.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-25 12:38:59 +01:00
Alexandre Julliard
ef9a0f3bc3
include: Don't include stdlib.h in wine/port.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00
Alexandre Julliard
341cb1a933
include: Don't include fcntl.h in wine/port.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-30 22:36:22 +02:00
Alexandre Julliard
c27832d717
include: Don't include sys/stat.h in wine/port.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-30 22:34:28 +02:00
Alexandre Julliard
6ba7773121
makefiles: Add a -mcygwin flag to specify the inverse of -mno-cygwin.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Alexandre Julliard
b3ea395681
mountmgr: Support $HOME paths to define shell folders.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-17 16:50:00 +02:00
Alexandre Julliard
fefb5da4ba
mountmgr: Make creating a backup optional for shell folders.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-17 16:49:30 +02:00
Alexandre Julliard
0a8776d455
mountmgr: Add requests to query and set shell folder symbolic links.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 21:35:54 +02:00