Commit Graph

81 Commits

Author SHA1 Message Date
Eric Pouech c54cad850b odbccp32: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 17:16:52 +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 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Francois Gouget 8867a0f33f odbccp32/tests: Fix the spelling of a comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-02 20:41:46 +01:00
Alistair Leslie-Hughes ea3096bdab odbccp32: Implement SQLWriteDSNToIni/W.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50150
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-18 22:39:34 +01:00
Alistair Leslie-Hughes 44e2a14af1 odbccp32: Implement SQLRemoveDSNFromIni/w.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 21:23:27 +01:00
Hans Leidekker c8eae716b6 odbccp32: Map system DSN requests to user DSN requests in SQLConfigDataSource.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50116
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-12 13:58:46 +01:00
Alistair Leslie-Hughes 8f0057699e odbccp32: Implement SQLConfigDataSource/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-06 10:44:43 +01:00
Gijs Vermeulen 3915b8d229 odbccp32: Handle NULL sizeout in SQLGetInstalledDrivers.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48111
Signed-off-by: Gijs Vermeulen <gijsvrm@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 19:12:14 +01:00
Alistair Leslie-Hughes 8df456ccd4 odbccp32: Correct error when driver cannot be found.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-27 11:40:19 +02:00
Alexandre Julliard 45ea03c8a7 odbccp32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 09:29:58 +02:00
Alistair Leslie-Hughes ab6dfd0581 odbccp32: Fake success from SQLWriteDSNToIni/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-23 20:01:57 +02:00
Alistair Leslie-Hughes 990f08dc73 odbccp32: Implement SQLValidDSN/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:02:30 +02:00
Alistair Leslie-Hughes 7973699a8b odbccp32: Correcly lookup driver in load_config_driver.
RegGetValueW doesn't return ERROR_MORE_DATA when the buffer parameter
is NULL, unlike other Reg functions. This also passes the correct
parameter(reg_driver) on the second call to RegGetValueW.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 10:52:34 +02:00
Alistair Leslie-Hughes 410610b553 odbccp32: Handle NULL parameter in SQLWritePrivateProfileStringW.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 10:52:32 +02:00
Michael Stefaniuc 52201acbea odbccp32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:01 +02:00
Zebediah Figura 3e90c9be3e odbccp32/tests: Set requestedExecutionLevel to asInvoker to prevent virtualization.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:14:30 +02:00
Zebediah Figura 560010571a odbccp32/tests: Skip SQLGetInstalledDrivers() test if limited.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:13:48 +02:00
Józef Kucia e034ba1b59 odbccp32: Fix memory leak in SQLGetInstalledDrivers() (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-28 22:08:23 +02:00
Zebediah Figura 5eb8894e93 odbccp32: Avoid using RegQueryInfoKey() in SQLGetInstalledDrivers().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-23 09:33:00 +02:00
Zebediah Figura 3478a81a4c odbccp32/tests: Add tests for SQLGetInstalledDrivers().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 21:58:02 +02:00
Zebediah Figura 169960b676 odbccp32: Clean up SQLGetInstalledDrivers().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 21:58:02 +02:00
Michael Stefaniuc 0c7863d9e9 odbccp32: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 10:34:33 +01:00
Francois Gouget 522385f619 odbccp32/tests: Make test_SQLInstallTranslatorEx() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 13:09:34 +02:00
Alistair Leslie-Hughes c92189c600 odbccp32: Handle ODBC_CONFIG_DRIVER request in SQLConfigDriver/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 11:04:39 +02:00
Alistair Leslie-Hughes 3b5a8707e6 odbccp32: Look in LOCAL_MACHINE for the driver.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 14:58:35 +02:00
Alistair Leslie-Hughes 764ee72641 odbccp32: Implement SQLConfigDriver/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-07 18:05:47 +02:00
Alistair Leslie-Hughes e7afcb9850 odbccp32: Implement SQLRemoveTranslator/W.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-06 19:00:09 +02:00
Alistair Leslie-Hughes d687fc8f34 odbccp32: Implement SQLInstallTranslator.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:17:27 +02:00
Francois Gouget ec3d34a5a6 odbccp32/tests: Make test_SQLInstallDriverEx() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 12:07:56 +02:00
Hans Leidekker 49b644d7a2 odbccp32/tests: RegGetValueA is not available on Windows XP.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 15:32:15 +01:00
Alistair Leslie-Hughes 3136beda26 odbccp32: Implement SQLRemoveDriver/SQLRemoveDriverW.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:37 +01:00
Alistair Leslie-Hughes 27482bce73 odbccp32: Implement SQLInstallDriverEx.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-15 20:06:49 +01:00
André Hentschel 093d8702b9 odbccp32: Fix some spec file entries.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-24 09:34:43 +01:00
Francois Gouget 65b6cf186d odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its parameter name.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:31:54 +01:00
Alistair Leslie-Hughes cd50e1518f odbccp32/test: Correct tests without privileges.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 23:15:39 +09:00
Alistair Leslie-Hughes d77423093c odbccp32: Remove duplicate string.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 22:24:55 +09:00
Alistair Leslie-Hughes 94667def7b odbccp32: Implement SQLGetPrivateProfileStringW/SQLGetPrivateProfileString.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 22:08:36 +09:00
Alistair Leslie-Hughes f4c9eac73d odbccp32: Add a trace message to functions. 2015-06-08 15:26:11 +09:00
Alistair Leslie-Hughes 67acce4aa6 odbccp32: Implement SQLWritePrivateProfileStringA/W. 2015-03-27 22:26:57 +09:00
Francois Gouget 8110b3cb09 odbccp32: Remove an uneeded NONAMELESSUNION directive. 2015-03-17 14:18:45 +09:00
Nikolay Sivov 44677f2f78 odbccp32/tests: Remove test of always true conditions (PVS-Studio). 2014-08-18 12:45:31 +02:00
Stefan Leichter cbd7651552 odbccp32: Add ordinals to spec file. 2014-03-14 11:29:53 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Hans Leidekker 92405a2d98 odbccp32: Initialize the usage count in SQLRemoveDriverManager and SQLRemoveDriver (valgrind). 2011-03-10 14:10:16 +01:00
André Hentschel a16b51c62c odbccp32: Improve some stubs. 2011-02-23 19:22:02 +01:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Goujon b234bb49ff odbccp32: Fix SQLInstallDriverManager{,W}. 2010-09-13 14:47:35 -05:00
Paul Vriens 75c5484174 dlls: Fix some specfiles with respect to 'str' and 'wstr' usage. 2010-09-09 14:57:44 +02:00