Commit Graph

56 Commits

Author SHA1 Message Date
Jacek Caban d580d2c2fd setupapi: Fix hex digit check in SetupGetBinaryField.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-06 21:40:22 +01:00
Alexandre Julliard 72d6759f3a setupapi: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 11:38:15 +02:00
Józef Kucia 88e28d971b setupapi: Avoid debugstr buffer overflow.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 12:48:51 +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 bb4a6da373 setupapi: Search for substituted strings in SetupFindNextMatchLine().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:49:37 +01: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
Sebastian Lackner e8aa851fe4 setupapi: Fix parsing of inf files containing garbage at the beginning of the file.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-16 21:59:42 +09:00
Frédéric Delanoy 9c76ccfda1 setupapi: Use BOOL type where appropriate. 2014-02-13 17:52:14 +01:00
Frédéric Delanoy cef6b07372 setupapi: Use BOOL type where appropriate. 2013-10-10 10:44:30 +02:00
Marcus Meissner 1b27af164c setupapi: Avoid NULL dereference in error path (Coverity). 2010-01-08 10:13:46 +01:00
James Hawkins b116175d4a setupapi: Refactor freeing the INF file into free_inf_file. Use this new function to free any remnants of the parsing on error. 2010-01-07 17:59:58 +01:00
Alexandre Julliard b70bbe3d29 setupapi: Duplicate the string substitution code to implement GenFormStrWithoutPlaceHolders16. 2009-10-01 19:44:43 +02:00
Michael Stefaniuc ffae0123ac setupapi: Remove superfluous pointer casts. 2009-01-28 12:30:57 +01:00
Andrew Talbot f34e733c2c setupapi: Declare a function static. 2009-01-26 15:48:51 +01:00
Rico Schüller 619a74ec5f setupapi: Fix if condition in SetupEnumInfSectionsA/W. 2009-01-12 13:18:28 +01:00
Alexandre Julliard b45cfc123e setupapi: Implemented SetupEnumInfSectionsA/W. 2009-01-05 20:26:50 +01:00
Michael Stefaniuc 02d1154bab setupapi: Remove some superfluous casts. 2008-12-08 12:04:25 +01:00
Andrew Talbot 1c64c934db setupapi: Sign-compare warnings fix. 2008-11-11 11:40:42 +01:00
Andrew Talbot 362cd67d3b setupapi: Remove unused variables. 2008-04-25 11:28:40 +02:00
Paul Vriens ebec0a9697 setupapi: Fix for SetupGetIntField, with tests. 2008-04-01 13:15:56 +02:00
Paul Vriens a3557272f4 setupapi: Fix some last errors for SetupGetLineByIndex. 2008-03-28 21:42:15 +01:00
Paul Vriens 50e81d0e6d setupapi: Fix some last errors for SetupFindFirstLine. 2008-03-28 21:42:15 +01:00
Andrew Talbot e48bbc23e4 setupapi: Remove unneeded casts. 2008-01-21 11:38:51 +01:00
Andrew Talbot 3bf6315af2 setupapi: Constify some variables. 2007-08-27 19:27:26 +02:00
Jason Edmeades 7f901f41f0 setupapi: Remove duplicate backslashes on dirids. 2007-08-13 13:04:16 +02:00
Detlef Riekenberg 8be4e8537c setupapi: Avoid crash in SetupCloseInfFile. 2007-07-10 13:31:54 +02:00
Hans Leidekker 3cfb018ea6 setupapi: Don't require a valid version section for INF_STYLE_OLDNT files. 2007-05-21 12:30:34 +02:00
Alexandre Julliard 31ade1eb67 setupapi: Add support for .inf files in utf-8 format. 2007-03-21 13:52:43 +01:00
Andrew Talbot a89d5de5df setupapi: Replace inline static with static inline. 2007-03-21 11:55:37 +01:00
Michael Stefaniuc 79ecfaf52f setupapi: Win64 printf format warning fixes. 2006-10-14 20:17:25 +02:00
James Hawkins 7588b669d8 setupapi: Implement pSetupGetField, with tests. 2006-09-14 11:40:27 +02:00
James Hawkins bce44161f1 setupapi: Fix SetupCloseInfFile when a NULL handle is given, with tests. 2006-06-27 11:15:36 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Robert Shearman 4d7946464a setupapi: Fix parsing of UCS-16 files.
Fix parsing of UCS-16 files prefixed with the Unicode BOM. Based on a 
patch by Hervé Poussineau.
2006-05-05 21:58:28 +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
Alexandre Julliard 6c0fc4205c Added a bunch of tests for the INF parser. 2005-11-07 16:41:37 +00:00
Marcus Meissner bd7ec9aca5 The last argument to MultiByteToWideChar is wide character count and
not the buffer size in bytes. Fixed all places where it was wrong.
2005-09-12 22:07:53 +00:00
Ge van Geldorp 3ebeb2377f index is 1-based at this point, index == line->nb_fields is the last
field and is valid.
2005-08-15 09:43:28 +00:00
Alexandre Julliard 4ed08c497b Preserve the spaces before an opening quote in the middle of a token
(reported by Matthew Davison).
2005-07-22 18:30:53 +00:00
Alexandre Julliard 4b63ed83cf Revert previous change, it shouldn't be necessary (reported by Rob
Shearman).
2005-06-01 11:05:47 +00:00
Alexandre Julliard ec3cf77d65 Skip the Unicode signature if present. 2005-05-31 13:29:48 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Kohl faa7df1e08 Implement SetupDiBuildClassInfoList(ExW),
SetupDiClassGuidsFromName(W/ExW), SetupDiClassNameFromGuid(W/ExW),
SetupDiGetActualSectionToInstallW, SetupDiGetClassDescription(W/ExW),
SetupDiInstallClassW partially, SetupDiOpenClassRegKey(ExW),
SetupOpenMasterInf.
2004-12-02 18:09:53 +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
Steven Edwards 6518b5ca27 MSVC porting fixes. 2004-01-05 21:12:21 +00:00
Oleg Prokhorov b6ee614a81 Another portion of HeapReAlloc fixes. 2003-10-24 00:29:43 +00:00
Steven Edwards b2b7262815 Porting fixes. 2003-09-11 02:58:46 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Tony Lambregts 2e24a148bf Replace DPRINTF with TRACE. 2003-03-15 00:12:42 +00:00