Fixed some warnings.
This commit is contained in:
parent
e5102f2997
commit
4710be20fe
|
@ -490,7 +490,7 @@ HRESULT WINAPI IDirect3DDeviceImpl_Execute(
|
||||||
/* Put this as the default context */
|
/* Put this as the default context */
|
||||||
|
|
||||||
/* Execute... */
|
/* Execute... */
|
||||||
((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, lpDirect3DViewport);
|
((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, (IDirect3DViewport2*)lpDirect3DViewport);
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "wininet.h"
|
#include "wininet.h"
|
||||||
#include "debugtools.h"
|
#include "debugtools.h"
|
||||||
|
@ -16,7 +18,9 @@
|
||||||
#include "winsock.h"
|
#include "winsock.h"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
|
# include <sys/socket.h>
|
||||||
|
#endif
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -721,7 +725,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName,
|
||||||
|
|
||||||
if (hIC->lpfnStatusCB)
|
if (hIC->lpfnStatusCB)
|
||||||
hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_RESOLVING_NAME,
|
hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_RESOLVING_NAME,
|
||||||
lpszServerName, strlen(lpszServerName));
|
(LPVOID)lpszServerName, strlen(lpszServerName));
|
||||||
|
|
||||||
if (nServerPort == INTERNET_INVALID_PORT_NUMBER)
|
if (nServerPort == INTERNET_INVALID_PORT_NUMBER)
|
||||||
nServerPort = INTERNET_DEFAULT_HTTP_PORT;
|
nServerPort = INTERNET_DEFAULT_HTTP_PORT;
|
||||||
|
@ -734,7 +738,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName,
|
||||||
|
|
||||||
if (hIC->lpfnStatusCB)
|
if (hIC->lpfnStatusCB)
|
||||||
hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_NAME_RESOLVED,
|
hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_NAME_RESOLVED,
|
||||||
lpszServerName, strlen(lpszServerName));
|
(LPVOID)lpszServerName, strlen(lpszServerName));
|
||||||
|
|
||||||
lpwhs->hdr.htype = WH_HHTTPSESSION;
|
lpwhs->hdr.htype = WH_HHTTPSESSION;
|
||||||
lpwhs->hdr.lpwhparent = (LPWININETHANDLEHEADER)hInternet;
|
lpwhs->hdr.lpwhparent = (LPWININETHANDLEHEADER)hInternet;
|
||||||
|
@ -1033,8 +1037,8 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQA lpwhr, LPCSTR field, LPCSTR value, DWO
|
||||||
{
|
{
|
||||||
HTTPHEADERA hdr;
|
HTTPHEADERA hdr;
|
||||||
|
|
||||||
hdr.lpszField = field;
|
hdr.lpszField = (LPSTR)field;
|
||||||
hdr.lpszValue = value;
|
hdr.lpszValue = (LPSTR)value;
|
||||||
hdr.wFlags = hdr.wCount = 0;
|
hdr.wFlags = hdr.wCount = 0;
|
||||||
|
|
||||||
if (dwModifier & HTTP_ADDHDR_FLAG_REQ)
|
if (dwModifier & HTTP_ADDHDR_FLAG_REQ)
|
||||||
|
|
|
@ -465,7 +465,7 @@ BOOL SetUrlComponentValue(LPSTR* lppszComponent, LPDWORD dwComponentLen, LPCSTR
|
||||||
{
|
{
|
||||||
if (*lppszComponent == NULL)
|
if (*lppszComponent == NULL)
|
||||||
{
|
{
|
||||||
*lppszComponent = lpszStart;
|
*lppszComponent = (LPSTR)lpszStart;
|
||||||
*dwComponentLen = len;
|
*dwComponentLen = len;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -523,7 +523,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lpszcp = lpszUrl; /* Relative url */
|
lpszcp = (LPSTR)lpszUrl; /* Relative url */
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue