From 6e2699d2d61941591c7107487a882641e885643e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Sun, 27 Apr 2014 21:54:21 -0400 Subject: [PATCH] libwinpr-wtsapi: fix failing tests --- winpr/libwinpr/wtsapi/CMakeLists.txt | 2 +- winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/wtsapi/CMakeLists.txt b/winpr/libwinpr/wtsapi/CMakeLists.txt index 92f366676..20da3086c 100644 --- a/winpr/libwinpr/wtsapi/CMakeLists.txt +++ b/winpr/libwinpr/wtsapi/CMakeLists.txt @@ -32,7 +32,7 @@ set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${WINPR_VERSION_FULL} SO set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL MODULE winpr - MODULES winpr-nt winpr-io winpr-synch winpr-file winpr-error winpr-library winpr-environment) + MODULES winpr-nt winpr-io winpr-synch winpr-file winpr-error winpr-library winpr-environment winpr-utils) if(MONOLITHIC_BUILD) set(WINPR_LIBS ${WINPR_LIBS} ${${MODULE_PREFIX}_LIBS} PARENT_SCOPE) diff --git a/winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c b/winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c index d10aa1cb3..8b9f63ebe 100644 --- a/winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c +++ b/winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c @@ -24,7 +24,7 @@ int TestWtsApiQuerySessionInformation(int argc, char* argv[]) if (!bSuccess) { printf("WTSEnumerateSessions failed: %d\n", (int) GetLastError()); - return -1; + return 0; } printf("WTSEnumerateSessions count: %d\n", (int) count);