mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-05 15:30:33 +00:00
added debug info for windows
This commit is contained in:
parent
7815036ab0
commit
d0abb366ec
|
@ -687,7 +687,11 @@ void futurerestore::loadSep(const char *sepPath){
|
||||||
if (!(_client->sepfwdata = (char*)malloc(_client->sepfwdatasize)))
|
if (!(_client->sepfwdata = (char*)malloc(_client->sepfwdatasize)))
|
||||||
reterror(-15, "failed to malloc memory for SEP\n");
|
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");
|
reterror(-15, "failed to load SEP\n");
|
||||||
|
|
||||||
fclose(fsep);
|
fclose(fsep);
|
||||||
|
|
Loading…
Reference in a new issue