From 3b71138442eb3e595bc74c884c70cf61652f9728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Sat, 5 Jan 2013 14:58:47 -0500 Subject: [PATCH] wfreerdp-server: fix build on Windows 7 --- server/Windows/CMakeLists.txt | 1 - server/Windows/wf_rdpsnd.c | 4 ++++ winpr/libwinpr/sspi/test/TestSchannel.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/Windows/CMakeLists.txt b/server/Windows/CMakeLists.txt index 2382a152b..bdabe1329 100644 --- a/server/Windows/CMakeLists.txt +++ b/server/Windows/CMakeLists.txt @@ -54,7 +54,6 @@ if(WITH_WIN8) endif() set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} dsound) - set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-server) set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS diff --git a/server/Windows/wf_rdpsnd.c b/server/Windows/wf_rdpsnd.c index f3b104841..ec90e911a 100644 --- a/server/Windows/wf_rdpsnd.c +++ b/server/Windows/wf_rdpsnd.c @@ -26,6 +26,10 @@ #include +#define INITGUID +#include +#include + #define CINTERFACE #include #include diff --git a/winpr/libwinpr/sspi/test/TestSchannel.c b/winpr/libwinpr/sspi/test/TestSchannel.c index 3fccbb1c0..646445d79 100644 --- a/winpr/libwinpr/sspi/test/TestSchannel.c +++ b/winpr/libwinpr/sspi/test/TestSchannel.c @@ -72,7 +72,7 @@ static void* schannel_test_server_thread(void* arg) //return NULL; } - pCertContext = CertFindCertificateInStore(hCertStore, X509_ASN_ENCODING, 0, CERT_FIND_HAS_PRIVATE_KEY, NULL, NULL); + pCertContext = CertFindCertificateInStore(hCertStore, X509_ASN_ENCODING, 0, CERT_FIND_ANY, NULL, NULL); if (!pCertContext) {