58 Commits

Author SHA1 Message Date
Zebediah Figura
8bc25b24af setupapi: Don't fail a queued copy if no copy was necessary.
This fixes a regression introduced by 3e5c9798a80641e0e39e95e4467c60405b22b062.

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
Alexandre Julliard
261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Detlef Riekenberg
521d067ba9 SetupSetFileQueueAlternatePlatform{AW} implemented as stub. 2005-07-10 18:16:26 +00:00
Matthew Davison
5014e742fb Stub out the error dialog functions.
Modify the default callbacks to call these for Delete and Rename
errors.
Modify the default callbacks to ignore file missing errors when
deleting files.
2005-06-12 11:05:58 +00:00
Ivan Leo Puoti
6be20a7c96 Minor fix in SetupQueueCopySectionW. 2005-05-16 08:49:51 +00:00
Aric Stewart
cc8f18f96f Copy the implementation from SetupDefaultQueueCallbackA and make it
W.
2005-01-18 11:39:49 +00:00
Gerald Pfeifer
53b71e464a Use proper type for fourth parameter to VerQueryValueW(). 2004-12-13 13:20:36 +00:00
Hans Leidekker
719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Alexandre Julliard
cb283489ad Added support for the RegisterDlls section (partly based on a patch by
Chris Morgan).
2004-02-27 00:47:10 +00:00
Michael Stefaniuc
1cd884eb5c Due to a misplaced "}" memory wasn't freed on the error path. 2003-09-27 02:25:40 +00:00