From d0abb366ec55ecfaa20d0a4235d7559f43ad3358 Mon Sep 17 00:00:00 2001 From: tihmstar Date: Wed, 4 Jan 2017 15:01:43 +0100 Subject: [PATCH] added debug info for windows --- futurerestore/futurerestore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/futurerestore/futurerestore.cpp b/futurerestore/futurerestore.cpp index 68446931..b07c8ea3 100644 --- a/futurerestore/futurerestore.cpp +++ b/futurerestore/futurerestore.cpp @@ -687,7 +687,11 @@ void futurerestore::loadSep(const char *sepPath){ if (!(_client->sepfwdata = (char*)malloc(_client->sepfwdatasize))) reterror(-15, "failed to malloc memory for SEP\n"); - if (fread(_client->sepfwdata, 1, _client->sepfwdatasize, fsep) != _client->sepfwdatasize) + size_t freadRet=0; + if ((freadRet = fread(_client->sepfwdata, 1, _client->sepfwdatasize, fsep)) != _client->sepfwdatasize) +#ifdef WIN32 + printf("WARNING (WIN32) issue? _client->sepfwdatasize=%d but fread returned=%d\n",_client->sepfwdatasize,freadRet), +#endif reterror(-15, "failed to load SEP\n"); fclose(fsep);