Permalink
Browse files

windows fixes

  • Loading branch information...
turleypol committed Oct 9, 2018
1 parent a5e6206 commit 5b652badb11a346ecbbda608612681e56ad08658
Showing with 5 additions and 4 deletions.
  1. +2 −2 pol-core/clib/clib_MD5.cpp
  2. +1 −1 pol-core/clib/mdump.cpp
  3. +2 −1 pol-core/clib/threadhelp.cpp
@@ -24,15 +24,15 @@ namespace Pol
{
namespace Clib
{
static HCRYPTPROV hProv = nullptr;
static HCRYPTPROV hProv = 0;
bool MD5_Encrypt( const std::string& in, std::string& out )
{
// bool bResult = true;
// HCRYPTKEY hKey = nullptr;
// HCRYPTKEY hXchgKey = nullptr;
HCRYPTHASH hHash = nullptr;
HCRYPTHASH hHash = 0;
if ( !hProv )
{
View
@@ -156,7 +156,7 @@ LONG HiddenMiniDumper::TopLevelFilter( struct _EXCEPTION_POINTERS* pExceptionInf
ExInfo.ThreadId = ::GetCurrentThreadId();
ExInfo.ExceptionPointers = pExceptionInfo;
ExInfo.ClientPointers = nullptr;
ExInfo.ClientPointers = 0;
// write the dump
MINIDUMP_TYPE dumptype;
@@ -176,10 +176,11 @@ void* thread_stub2( void* v_td )
#ifdef _WIN32
_endthreadex( 0 );
return 0;
#else
pthread_exit( nullptr );
#endif
return nullptr;
#endif
}
#ifdef _WIN32

0 comments on commit 5b652ba

Please sign in to comment.