[win32] Fixed libcurl initialization when the env variable OPENSSL_CONF points to...
authorAnton Fedchin <afedchin@ruswizards.com>
Tue, 16 Jun 2015 20:55:40 +0000 (23:55 +0300)
committerAnton Fedchin <afedchin@ruswizards.com>
Tue, 16 Jun 2015 20:55:40 +0000 (23:55 +0300)
xbmc/win32/XBMC_PC.cpp

index 99c763b..4adf1dc 100644 (file)
@@ -53,6 +53,10 @@ INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR commandLine, INT )
   // set up some xbmc specific relationships
   XBMC::Context context;
 
+  // this fixes crash if OPENSSL_CONF is set to existed openssl.cfg
+  // need to set it as soon as possible
+  SetEnvironmentVariable("OPENSSL_CONF", "");
+
   //this can't be set from CAdvancedSettings::Initialize() because it will overwrite
   //the loglevel set with the --debug flag
 #ifdef _DEBUG