#if defined(__WIN32__)
#include <cryptuiapi.h>
+#include "common/win32ssl.h"
#endif
#include "carddav/carddav.h"
#include "common/dirs.h"
#include "common/svrblist.h"
-#include "common/win32ssl.h"
#include "frmInvalidSSLCertificate.h"
frmNewAccount::frmNewAccount( wxWindow* parent )
std::thread ConnTest(&CardDAV::Connect, &CardDAVConn);
ConnTest.join();
-
+
+#if defined(__WIN32__)
if (ServerResult == FALSE && ModifiedCertificateData == FALSE){
+#else
+ if (ServerResult == FALSE){
+#endif
lblServerConnResult->SetLabel(_("Failed"));
lblConnectionResultText->SetLabel(_("An error occured whilst connnecting: ") + CardDAVConn.GetErrorMessage());
wxString XestiaABDirectory;
wxString AccountSettingsFile;
//wxFile ASFile;
- wxString RandomNumberSuffix = wxString::Format(wxT("%i"), rand() % 32767);
+
+ srand(time(0));
+ int RandomNumber = rand() % 32767;
+ wxString RandomNumberSuffix = wxString::Format(wxT("%i"), RandomNumber);
bool DirectoryCreated = FALSE;
#if defined(__HAIKU__)