From 14d400ce04d119526d7110a2494244598bac5fc2 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 2 Dec 2011 17:57:07 +0000 Subject: [PATCH] - fixed win32 build --- source/shared_lib/sources/map/map_preview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/map/map_preview.cpp b/source/shared_lib/sources/map/map_preview.cpp index f2169d993..43ebd9c90 100644 --- a/source/shared_lib/sources/map/map_preview.cpp +++ b/source/shared_lib/sources/map/map_preview.cpp @@ -714,10 +714,10 @@ void MapPreview::loadFromFile(const string &path) { #ifdef WIN32 wstring wstr = utf8_decode(path); FILE* f1= _wfopen(wstr.c_str(), L"rb"); + int fileErrno = errno; #else FILE *f1 = fopen(path.c_str(), "rb"); #endif - //int fileErrno = errno; if (f1 != NULL) { //read header