Commit graph

25 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 2a5fd78f1b
[APPHELP_APITEST] Fix build, addendum to commit a8755711b 2023-10-05 21:32:38 +02:00
Hermès Bélusca-Maïto a8755711b9
[APPHELP_APITEST] Deduplicate the IsUserAdmin() helper. 2023-10-05 20:58:57 +02:00
Mark Jansen 6ae2f432b3
[APPHELP_APITEST] dwMinor indicates the current date on Windows below vista.... 2023-02-01 18:29:59 +01:00
Mark Jansen 0dde428d00
[APPHELP_APITEST] Fix the db test again 2023-02-01 00:44:51 +01:00
Hermès Bélusca-Maïto 9393fc320e
[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.
Excluded: 3rd-party code (incl. wine) and most of the win32ss.
2021-09-13 03:52:22 +02:00
Jérôme Gardou e470b58376 [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
Jérôme Gardou 907025a018 [CMAKE] Introduce the atl_classes interface library
This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
2020-10-20 21:44:54 +02:00
Jérôme Gardou d6ea8659c8 [CMAKE] Get rid of the set_cpp macro
Instead of messing with global variables and the like, we introduce two target properties:
 - WITH_CXX_EXCEPTIONS: if you want to use C++ exceptions
 - WITH_CXX_RTTI: if you need RTTI in your module
You can use the newly introduced set_target_cpp_properties function, with WITH_EXCEPTIONS and WITH_RTTI arguments
We also introduce two libraries :
 - cpprt: for C++ runtime routines
 - cppstl: for the C++ standard template library

NB: On GCC, this requires to create imported libraries with the related built-in libraries:libsupc++, limingwex, libstdc++

Finally, we manage the relevant flags with the ad-hoc generator expressions

So, if you don't need exceptions, nor RTTI, nor use any runtime at all: you simply have nothing else to do than add your C++ file to your module
2020-10-20 21:44:54 +02:00
Serge Gautherie e7440eff8f
[APPHELP_APITEST] Properly handle a couple 'malloc()/free()' (#2898)
Detected by Cppcheck: memleak, redundantAssignment.
Addendum to 78280ad2 (r71226).
2020-06-06 17:58:34 +02:00
Serge Gautherie cb5aa7bee4
[APITESTS] Tested function must be called before GetLastError() log (#2433)
So as to get the relevant LastError value.
Fixes for apphelp_apitest, kernel32_apitest and ws2_32_apitest.
2020-03-13 18:15:21 +01:00
Timo Kreuzer 465745b683 [APITESTS] Improve and fix tests 2019-12-21 12:44:48 +01:00
Mark Jansen 08110c11d6
[APPHELP_APITEST] Make the db test succeed on 2k3 2019-09-25 20:46:57 +02:00
Mark Jansen f9c63aa7a4
[APPHELP_APITEST] Make the apphelp test succeed on 2k3 2019-09-25 20:46:45 +02:00
Victor Perevertkin 6b10706205 [APITESTS] Use StringCbPrintfA instead of sprintf
And fix a buffer size in Test_AddFontResourceA
2019-08-20 15:05:47 +02:00
Mark Jansen 0f60294c56
[APPHELP_APITEST] Disable exceptions in atl when compiling without exceptions 2019-04-18 19:21:38 +02:00
Mark Jansen fa548efb41
[XDK] Remove _M_AMD64 special case 2019-02-25 20:00:35 +01:00
Mark Jansen 28a091ac12
[APPHELP][APPHELP_APITEST] Implement SdbGetDatabaseInformation
CORE-11301
2019-02-25 20:00:34 +01:00
Mark Jansen a9bd3da299
[APPHELP_APITEST] Add a test for shim database registration
CORE-11301
2019-02-25 20:00:34 +01:00
Mark Jansen 13a3cf03d7
[APPHELP_APITEST] Fix rc dependency.
As pointed out by Thomas.
2018-08-13 13:24:12 +02:00
Mark Jansen 74bb9d5dc0
[APPHELP_APITEST] Add tests for Data tags 2018-04-12 18:49:25 +02:00
Mark Jansen 8bbbab534a
[APPHELP_APITEST] Fix some 64 bit issues. 2018-03-18 15:58:04 +01:00
Serge Gautherie 84a9284a3f
[APPHELP_APITEST] Fix a Clang-Cl warning about a memcmp() call
"warning: argument to 'sizeof' in 'memcmp' call is the same pointer type 'SDBQUERYRESULT_VISTA *' (aka 'struct tagSDBQUERYRESULT_VISTA *') as the destination; expected 'SDBQUERYRESULT_VISTA' (aka 'struct tagSDBQUERYRESULT_VISTA') or an explicit length [-Wsizeof-pointer-memaccess]"

CORE-14306
2018-03-07 20:42:14 +01:00
Serge Gautherie 601871955f
[APPHELP_APITEST] env.c: Fix a 3rd Windows S2003 special case
Test_Shimdata() already has a TODO with 2 special cases.

- Special-case "dwLayerCount" too.
- Add extra-safety checks.
2018-03-07 20:42:14 +01:00
Mark Jansen f9395e92af [APPHELP][APPHELP_APITEST] Fix SdbGetAppPatchDir prototype 2018-01-21 21:13:08 +01:00
Colin Finck c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00