forked from rosebudai/OpenRCT2-Web
Remove Exception::GetMsg()
We can undef any macro windows.h defines and interferes with our code base. In this case GetMessage
This commit is contained in:
1 parent
e4b53630ed
commit
91eb33255b
8 files changed
+9
-6
No files matched your search
@@ -28,6 +28,7 @@
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#undef GetMessage
|
||||
#define LAST_SOCKET_ERROR() WSAGetLastError()
|
||||
#undef EWOULDBLOCK
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
@@ -321,7 +322,7 @@ public:
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
req->Socket->_error = std::string(ex.GetMsg());
|
||||
req->Socket->_error = std::string(ex.GetMessage());
|
||||
}
|
||||
|
||||
SDL_UnlockMutex(req->Socket->_connectMutex);
|
||||
|
||||
Reference in new issue
Block a user