diff --git a/dlls/ddraw/d3ddevice/main.c b/dlls/ddraw/d3ddevice/main.c index fe6627206c3..21bfc3d3e23 100644 --- a/dlls/ddraw/d3ddevice/main.c +++ b/dlls/ddraw/d3ddevice/main.c @@ -490,7 +490,7 @@ HRESULT WINAPI IDirect3DDeviceImpl_Execute( /* Put this as the default context */ /* Execute... */ - ((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, lpDirect3DViewport); + ((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, (IDirect3DViewport2*)lpDirect3DViewport); return DD_OK; } diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 35e68d0bb40..5cee68598e3 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -7,6 +7,8 @@ * */ +#include "config.h" + #include "windows.h" #include "wininet.h" #include "debugtools.h" @@ -16,7 +18,9 @@ #include "winsock.h" #include -#include +#ifdef HAVE_SYS_SOCKET_H +# include +#endif #include #include #include @@ -721,7 +725,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName, if (hIC->lpfnStatusCB) hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_RESOLVING_NAME, - lpszServerName, strlen(lpszServerName)); + (LPVOID)lpszServerName, strlen(lpszServerName)); if (nServerPort == INTERNET_INVALID_PORT_NUMBER) nServerPort = INTERNET_DEFAULT_HTTP_PORT; @@ -734,7 +738,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName, if (hIC->lpfnStatusCB) hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_NAME_RESOLVED, - lpszServerName, strlen(lpszServerName)); + (LPVOID)lpszServerName, strlen(lpszServerName)); lpwhs->hdr.htype = WH_HHTTPSESSION; lpwhs->hdr.lpwhparent = (LPWININETHANDLEHEADER)hInternet; @@ -1033,8 +1037,8 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQA lpwhr, LPCSTR field, LPCSTR value, DWO { HTTPHEADERA hdr; - hdr.lpszField = field; - hdr.lpszValue = value; + hdr.lpszField = (LPSTR)field; + hdr.lpszValue = (LPSTR)value; hdr.wFlags = hdr.wCount = 0; if (dwModifier & HTTP_ADDHDR_FLAG_REQ) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 2b2f8c0606b..cb67dc64963 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -465,7 +465,7 @@ BOOL SetUrlComponentValue(LPSTR* lppszComponent, LPDWORD dwComponentLen, LPCSTR { if (*lppszComponent == NULL) { - *lppszComponent = lpszStart; + *lppszComponent = (LPSTR)lpszStart; *dwComponentLen = len; } else @@ -523,7 +523,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags, } else { - lpszcp = lpszUrl; /* Relative url */ + lpszcp = (LPSTR)lpszUrl; /* Relative url */ } break;