- fixed win32 build

This commit is contained in:
Mark Vejvoda
2011-12-02 17:57:07 +00:00
parent 66f44ff7c4
commit 14d400ce04

View File

@@ -714,10 +714,10 @@ void MapPreview::loadFromFile(const string &path) {
#ifdef WIN32 #ifdef WIN32
wstring wstr = utf8_decode(path); wstring wstr = utf8_decode(path);
FILE* f1= _wfopen(wstr.c_str(), L"rb"); FILE* f1= _wfopen(wstr.c_str(), L"rb");
int fileErrno = errno;
#else #else
FILE *f1 = fopen(path.c_str(), "rb"); FILE *f1 = fopen(path.c_str(), "rb");
#endif #endif
//int fileErrno = errno;
if (f1 != NULL) { if (f1 != NULL) {
//read header //read header