osquery-1/osquery
Stefano Bonicatti e7fde8ad8e Fix wrong error code returned when querying the Windows registry (#5621)
Calling GetLastError() will not return the error code for the Windows registry APIs,
since they return a LSTATUS value which already the error code.

This also fixes the RegistryTablesTest.test_registry_non_existing_key
test case which was incorrectly expecting success when querying
for a non-existent registry key.

Ported from https://github.com/osql/osql/pull/50
2019-07-01 22:23:02 +02:00
..
carver Add CMake support 2019-06-26 21:49:06 -04:00
config Add CMake support 2019-06-26 21:49:06 -04:00
core Add CMake support 2019-06-26 21:49:06 -04:00
database Add CMake support 2019-06-26 21:49:06 -04:00
devtools Add CMake support 2019-06-26 21:49:06 -04:00
dispatcher Add CMake support 2019-06-26 21:49:06 -04:00
distributed Add CMake support 2019-06-26 21:49:06 -04:00
ev2 Add CMake support 2019-06-26 21:49:06 -04:00
events Add CMake support 2019-06-26 21:49:06 -04:00
examples Replace Status(0) calls with Status::success() to appease Lint (#5487) 2019-03-01 04:29:33 -08:00
experimental Add CMake support 2019-06-26 21:49:06 -04:00
extensions Add CMake support 2019-06-26 21:49:06 -04:00
filesystem Add CMake support 2019-06-26 21:49:06 -04:00
hashing Add CMake support 2019-06-26 21:49:06 -04:00
include/osquery Remove dead code for deserializeQueryLogItem functions (#5543) 2019-03-28 14:19:16 -07:00
killswitch Add CMake support 2019-06-26 21:49:06 -04:00
logger Add CMake support 2019-06-26 21:49:06 -04:00
main Add CMake support 2019-06-26 21:49:06 -04:00
numeric_monitoring Add CMake support 2019-06-26 21:49:06 -04:00
process Add CMake support 2019-06-26 21:49:06 -04:00
profiler Add CMake support 2019-06-26 21:49:06 -04:00
registry Add CMake support 2019-06-26 21:49:06 -04:00
remote Fixing port logic (#5576) 2019-06-28 08:31:25 -04:00
sdk Add CMake support 2019-06-26 21:49:06 -04:00
sql Add CMake support 2019-06-26 21:49:06 -04:00
system Add CMake support 2019-06-26 21:49:06 -04:00
tables Fix wrong error code returned when querying the Windows registry (#5621) 2019-07-01 22:23:02 +02:00
utils Add CMake support 2019-06-26 21:49:06 -04:00
BUCK temp solution for xcode support 2019-02-05 07:20:00 -08:00
CMakeLists.txt Add CMake support 2019-06-26 21:49:06 -04:00
empty.cpp temp solution for xcode support 2019-02-05 07:20:00 -08:00