- fixed win32 compile errors
This commit is contained in:
parent
8d8996c0ee
commit
ba35e3cc9f
|
@ -717,7 +717,7 @@ void MapPreview::loadFromFile(const string &path) {
|
|||
#else
|
||||
FILE *f1 = fopen(path.c_str(), "rb");
|
||||
#endif
|
||||
//int fileErrno = errno;
|
||||
int fileErrno = errno;
|
||||
if (f1 != NULL) {
|
||||
|
||||
//read header
|
||||
|
|
|
@ -591,7 +591,7 @@ string getNetworkInterfaceBroadcastAddress(string ipAddress)
|
|||
next = next->Next;
|
||||
}
|
||||
}
|
||||
//char buf[128];
|
||||
char buf[128]="";
|
||||
if (name == NULL)
|
||||
{
|
||||
//sprintf(buf, "unnamed-%i", i);
|
||||
|
|
|
@ -741,6 +741,7 @@ bool fileExists(const string &path) {
|
|||
else {
|
||||
//int fileErrno = errno;
|
||||
#ifdef WIN32
|
||||
int fileErrno = errno;
|
||||
DWORD error = GetLastError();
|
||||
string strError = "Could not open file, result: " + intToStr(error) + " - " + intToStr(fileErrno) + " " + strerror(fileErrno) + " [" + path + "]";
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user