Commit Graph

67 Commits

Author SHA1 Message Date
Hans Leidekker fac1e40aaf setupapi: Handle NULL source filename in build_filepathsW.
Source filename is NULL for files to be deleted.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-07 22:35:29 +01:00
Alexandre Julliard 5696c3c23d setupapi: Add an extension to support file copies from module resources.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 11:03:38 +01:00
Michael Müller 87b2af73ba setupapi: Implement SP_COPY_IN_USE_NEEDS_REBOOT.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36059
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 20:30:35 +01:00
Alexandre Julliard 32a2cde6c1 setupapi: Use wide character string literals.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 09:00:21 +01:00
Alexandre Julliard b3abc343c3 setupapi: Handle copy errors in SetupCommitFileQueueW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 12:51:50 +01:00
Zebediah Figura a431b4b54a setupapi: Fix handling of FILEOP_SKIP from the SPFILENOTIFY_STARTCOPY callback.
Fixes a regression introduced by 3e5c9798a8.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47436
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-23 10:50:14 +02:00
Sven Baars ecbd2dd34b setupapi: Fix an uninitialized variable warning (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 11:29:28 +02:00
Sven Baars 5f0d53e209 setupapi: Fix a path leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 11:29:28 +02:00
Alexandre Julliard 72d6759f3a setupapi: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 11:38:15 +02:00
Zebediah Figura 8bc25b24af setupapi: Don't fail a queued copy if no copy was necessary.
This fixes a regression introduced by 3e5c9798a8.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47219
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 12:18:05 +02:00
Zebediah Figura a748f685a5 setupapi: Clear the Win32 error if no copy was necessary.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 12:17:52 +02:00
Zebediah Figura d5f6d6419b setupapi: Retrieve the default destination path in SetupInstallFile().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 12:17:45 +02:00
Zebediah Figura 86724af012 setupapi: Handle an empty string for the source file in SetupQueueCopySection().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47185
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 18:49:46 +02:00
Zebediah Figura c65d98065c setupapi: Add magic bytes to struct file_queue and validate them in SetupCloseFileQueue().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=12332
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-03 16:34:42 +02:00
Zebediah Figura 3e5c9798a8 setupapi: Implement source media path resolution.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47107
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:37 +02:00
Zebediah Figura cfe4ce28eb setupapi: Use the source file name if the destination file name is NULL.
Do not do the reverse. Windows crashes if SourceFilename is NULL.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:37 +02:00
Zebediah Figura db8e2388d9 setupapi: Properly null-terminate the path in concat_W().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:37 +02:00
Zebediah Figura e8c4dbcec2 setupapi: Implement W -> A mapping of SPFILENOTIFY_NEEDMEDIA.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:37 +02:00
Zebediah Figura 46dc6dddf3 setupapi: Implement SetupDefaultQueueCallback(SPFILENOTIFY_NEEDMEDIA).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura 31bb0097ad setupapi: Keep track of source media in a separate list.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura 3cb621e6ca setupapi: Separate the entire copy operation into a helper function.
So as to centralize SPFILENOTIFY_COPYERROR callbacks into one place.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura ee36f923c5 setupapi: Remove implementation for LayoutInf parameter of SP_FILE_COPY_PARAMS.
Tests demonstrate that the existing implementation is not correct, and I was
unable to find an arrangement of parameters such that it was respected on
Windows. Most likely it has to do with the undocumented parameters used in
the "master" C:\windows\inf\layout.inf.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura 466b80786f setupapi: Implement SetupQueueCopyIndirectA() on top of the W variant.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura 705d3eed86 setupapi: Fill out all source file parameters in SetupQueueDefaultCopy().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura f9f25ee227 setupapi: Fill out all source file parameters in SetupQueueCopySection().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:36 +02:00
Zebediah Figura fccb7552eb setupapi: Extract individual files from cabinets.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 22:46:52 +02:00
Michael Stefaniuc d33f067460 setupapi: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 15:40:32 +02:00
André Hentschel 9edfb14c6b setupapi: Remove dead code (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 12:00:11 +01:00
Nikolay Sivov dcab5fe61b setupapi: Make default context structure layout compatible. 2014-05-12 10:53:16 +02:00
André Hentschel 4d796458d0 setupapi: Avoid memory leaks (coverity). 2012-10-29 10:40:14 +01:00
Francois Gouget 9097fa132e setupapi: Avoid hardcoding the Unicode string literal lengths. 2011-12-16 17:40:47 +01:00
Hans Leidekker 1b8ba25371 setupapi: Destination directory defaults to system directory. 2010-03-03 15:23:04 +01:00
Huw Davies 63231be804 setupapi: Fix memory leak.
Found by Valgrind.
2009-12-07 14:18:27 +01:00
Michael Stefaniuc ffae0123ac setupapi: Remove superfluous pointer casts. 2009-01-28 12:30:57 +01:00
Hans Leidekker bd9c265cc2 setupapi: Implement SetupInstallFileExA/W. 2009-01-26 14:31:01 +01:00
Hans Leidekker 19764fcf4c setupapi: Implement SetupInstallFile{A, W}. 2008-11-28 13:47:12 +01:00
Andrew Talbot ce2184e2f1 setupapi: Remove unneeded address-of operator from array name. 2008-07-14 11:50:12 +02:00
Alexandre Julliard 44ab294e0b setupapi: Move strdupW and strdupWtoA to the setupapi_private.h header. 2008-04-16 12:21:09 +02:00
Andrew Talbot e48bbc23e4 setupapi: Remove unneeded casts. 2008-01-21 11:38:51 +01:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Hans Leidekker 6cc0b4e88e setupapi: Add a partial implementation for SetupScanFileQueue{A, W}. 2007-05-18 14:18:49 +02:00
Hans Leidekker d060160b7a setupapi: Implement pSetup{Get, Set}QueueFlags. 2007-05-18 14:12:28 +02:00
Andrew Talbot a89d5de5df setupapi: Replace inline static with static inline. 2007-03-21 11:55:37 +01:00
Hans Leidekker 02c5df73d2 setupapi: Implement SetupGetSourceFileLocation{A,W}. 2006-11-14 11:34:31 +01:00
Michael Stefaniuc 79ecfaf52f setupapi: Win64 printf format warning fixes. 2006-10-14 20:17:25 +02:00
James Hawkins 5dadca4dbc setupapi: Fix a typo. 2006-09-26 20:01:55 +02:00
Frank Richter 8aecf251df setupapi: Make do_file_copyW send "target newer" notifications. 2006-08-28 11:35:40 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard 6cb7ca4177 setupapi: Store the full name to the INF file in the inf_file structure
(based on a patch by James Hawkins).
2006-02-07 16:08:19 +01:00
Eric Pouech 8cddd5d2fb Made some functions static. 2005-12-12 11:53:56 +01:00