Memory maps enhancements on Windows; see issue #578

This commit is contained in:
Oliver Duis
2011-03-13 16:31:49 +01:00
parent 751dbfd408
commit 5feaffbb79
3 changed files with 25 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
#include <myfile.h>
#include <cstdarg>
#include <glibmm.h>
#include <safegtk.h>
#ifdef RAWZOR_SUPPORT
#include <rwz_sdk.h>
#endif
@@ -65,7 +66,7 @@ int munmap(void *start, size_t length)
IMFILE* fopen (const char* fname)
{
int fd = ::open(fname,O_RDONLY);
int fd = safe_open_ReadOnly(fname);
if ( fd < 0 )
return 0;