X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fcryptlib.c;h=62bc495d3dd8318beee1b6dc793e3d3d7b6af466;hb=a25f33d28a5b4e81646e42609095ef59a3f08990;hp=2768c487960aee67169f4e538062beaceb2d33fd;hpb=94480b57db954599a355657a12d77ba926e195c4;p=openssl.git diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 2768c48796..62bc495d3d 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -860,7 +860,7 @@ void OPENSSL_showfatal (const char *fmta,...) #if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333 /* this -------------v--- guards NT-specific calls */ - if (GetVersion() < 0x80000000 && OPENSSL_isservice()) + if (GetVersion() < 0x80000000 && OPENSSL_isservice() > 0) { HANDLE h = RegisterEventSource(0,_T("OPENSSL")); const TCHAR *pmsg=buf; ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0);