From 748147f73b8c5159d1add7710f4765a11665336c Mon Sep 17 00:00:00 2001 From: thunder2 Date: Fri, 15 Jan 2016 12:00:02 +0100 Subject: [PATCH] Fixed Windows compile. --- libretroshare/src/pqi/pqinetwork.cc | 1 + libretroshare/src/rsserver/rsloginhandler.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/pqinetwork.cc b/libretroshare/src/pqi/pqinetwork.cc index bfbe001c3..e0cb9af90 100644 --- a/libretroshare/src/pqi/pqinetwork.cc +++ b/libretroshare/src/pqi/pqinetwork.cc @@ -25,6 +25,7 @@ #ifdef WINDOWS_SYS #include "util/rswin.h" +#include "util/rsmemory.h" #include #endif // WINDOWS_SYS diff --git a/libretroshare/src/rsserver/rsloginhandler.cc b/libretroshare/src/rsserver/rsloginhandler.cc index 9298492cd..b2a3c23f4 100644 --- a/libretroshare/src/rsserver/rsloginhandler.cc +++ b/libretroshare/src/rsserver/rsloginhandler.cc @@ -275,7 +275,7 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd fseek(fp, 0, SEEK_SET); dataptr = (char *) rs_malloc(datalen); - if(data_ptr == NULL) + if(dataptr == NULL) { fclose(fp); return false;