Fixed Windows compile.

This commit is contained in:
thunder2 2016-01-15 12:00:02 +01:00
parent b5f6059485
commit 748147f73b
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#ifdef WINDOWS_SYS
#include "util/rswin.h"
#include "util/rsmemory.h"
#include <ws2tcpip.h>
#endif // WINDOWS_SYS

View File

@ -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;