diff options
author | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-24 13:29:13 +0000 |
---|---|---|
committer | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-24 13:29:13 +0000 |
commit | e0d8dee7204e565febf8d651cdc7c04bdfa913e8 (patch) | |
tree | d3c59a1d300a459a99043520c0b996ac7d778c74 /src/common/grfio.c | |
parent | 913fd65ef9a5fa55ebbd5ac4502f72895879fc84 (diff) | |
download | hercules-e0d8dee7204e565febf8d651cdc7c04bdfa913e8.tar.gz hercules-e0d8dee7204e565febf8d651cdc7c04bdfa913e8.tar.bz2 hercules-e0d8dee7204e565febf8d651cdc7c04bdfa913e8.tar.xz hercules-e0d8dee7204e565febf8d651cdc7c04bdfa913e8.zip |
-Fix geoipreading cache for Windows, bugreport:6923
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16960 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r-- | src/common/grfio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c index 882b3ba36..8f430cfb9 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -403,7 +403,7 @@ void* grfio_reads(const char* fname, int* size) declen = ftell(in); fseek(in,0,SEEK_SET); buf2 = (unsigned char *)aMalloc(declen+1); // +1 for resnametable zero-termination - if(fread(buf2, 1, declen, in) != declen) printf("An error occured in fread grfio_reads, fname=%s \n",fname); + if(fread(buf2, 1, declen, in) != declen) ShowError("An error occured in fread grfio_reads, fname=%s \n",fname); fclose(in); if( size ) @@ -425,7 +425,7 @@ void* grfio_reads(const char* fname, int* size) int fsize = entry->srclen_aligned; unsigned char *buf = (unsigned char *)aMalloc(fsize); fseek(in, entry->srcpos, 0); - if(fread(buf, 1, fsize, in) != fsize) printf("An error occured in fread in grfio_reads, grfname=%s\n",grfname); + if(fread(buf, 1, fsize, in) != fsize) ShowError("An error occured in fread in grfio_reads, grfname=%s\n",grfname); fclose(in); buf2 = (unsigned char *)aMalloc(entry->declen+1); // +1 for resnametable zero-termination |