]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gsockmsw.cpp
use int instead of SOCKET to avoid including winsock.h from wx/gsocket.h
[wxWidgets.git] / src / msw / gsockmsw.cpp
index 61ba71bdfe4cedae43b791691f923d6016603c49..3ca8b48349e4ae395c8d6f798741eca4b3bbdc03 100644 (file)
@@ -367,7 +367,7 @@ LRESULT CALLBACK _GSocket_Internal_WinProc(HWND hWnd,
      * destroyed) and for safety, check that the m_fd field
      * is what we expect it to be.
      */
      * destroyed) and for safety, check that the m_fd field
      * is what we expect it to be.
      */
-    if ((socket != NULL) && (socket->m_fd == wParam))
+    if ((socket != NULL) && ((WPARAM)socket->m_fd == wParam))
     {
       switch WSAGETSELECTEVENT(lParam)
       {
     {
       switch WSAGETSELECTEVENT(lParam)
       {