diff options
author | Andy Polyakov <appro@openssl.org> | 2005-08-03 00:07:28 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-08-03 00:07:28 +0200 |
commit | 2031eca588a1db69bce6d7279f8dd9584d53694a (patch) | |
tree | 245c2cf90871fa0e8eb617f948d354cd6fbc94e5 /crypto/cryptlib.c | |
parent | Keep disclaiming 16-bit support. (diff) | |
download | openssl-2031eca588a1db69bce6d7279f8dd9584d53694a.tar.xz openssl-2031eca588a1db69bce6d7279f8dd9584d53694a.zip |
WCE-specific fix for cryptlib.c.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 21332378cf..c6a7173ab0 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -661,6 +661,8 @@ int OPENSSL_isservice(void) #endif else return 0; } +#else +int OPENSSL_isservice(void) { return 0; } #endif void OPENSSL_showfatal (const char *fmta,...) @@ -669,6 +671,7 @@ void OPENSSL_showfatal (const char *fmta,...) const TCHAR *fmt; HANDLE h; +#ifdef STD_ERROR_HANDLE /* what a dirty trick! */ if ((h=GetStdHandle(STD_ERROR_HANDLE)) != NULL && GetFileType(h)!=FILE_TYPE_UNKNOWN) { /* must be console application */ @@ -677,9 +680,10 @@ void OPENSSL_showfatal (const char *fmta,...) va_end (ap); return; } +#endif if (sizeof(TCHAR)==sizeof(char)) - fmt=fmta; + fmt=(const TCHAR *)fmta; else do { int keepgoing; size_t len_0=strlen(fmta)+1,i; @@ -730,21 +734,7 @@ void OPENSSL_showfatal (const char *fmta,...) } else #endif - { MSGBOXPARAMS m; - - m.cbSize = sizeof(m); - m.hwndOwner = NULL; - m.lpszCaption = _T("OpenSSL: FATAL"); - m.dwStyle = MB_OK; - m.hInstance = NULL; - m.lpszIcon = IDI_ERROR; - m.dwContextHelpId = 0; - m.lpfnMsgBoxCallback = NULL; - m.dwLanguageId = MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US); - m.lpszText = buf; - - MessageBoxIndirect (&m); - } + MessageBox (NULL,buf,_T("OpenSSL: FATAL"),MB_OK|MB_ICONSTOP|MB_TASKMODAL); } #else void OPENSSL_showfatal (const char *fmta,...) |