mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Silence more warnings. Patch by Waxdragon.
svn path=/trunk/; revision=16550
This commit is contained in:
parent
c855fc1edb
commit
2c8f96ecf4
9 changed files with 19 additions and 26 deletions
|
@ -320,7 +320,6 @@ FdoQueryBusRelations(
|
|||
PFDO_DEVICE_EXTENSION DeviceExtension;
|
||||
PDEVICE_RELATIONS Relations;
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
ANSI_STRING AnsiString;
|
||||
ACPI_STATUS AcpiStatus;
|
||||
PACPI_DEVICE Device;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
|
|
@ -99,10 +99,7 @@ void reactos_input_keyboard();
|
|||
|
||||
void reactos_input_keyboard()
|
||||
{
|
||||
MSG msg;
|
||||
BOOL fDone;
|
||||
int disk_code = -1;
|
||||
BOOL down;
|
||||
BYTE oldDInputKeyState[256];
|
||||
int t;
|
||||
|
||||
|
|
|
@ -712,8 +712,6 @@ void getmousesvalue(LPDIRECTINPUTDEVICE8A iface);
|
|||
int filp=0;
|
||||
void getmousesvalue(LPDIRECTINPUTDEVICE8A iface)
|
||||
{
|
||||
static long last_event = 0;
|
||||
|
||||
POINT point;
|
||||
SysMouseImpl *This = (SysMouseImpl *)iface;
|
||||
|
||||
|
@ -761,7 +759,6 @@ static HRESULT WINAPI SysMouseAImpl_Poll(LPDIRECTINPUTDEVICE8A iface)
|
|||
{
|
||||
int retValue = DI_OK;
|
||||
|
||||
SysMouseImpl *This = (SysMouseImpl *)iface;
|
||||
if (poll_mouse==0) {
|
||||
retValue=SysMouseAImpl_Acquire(iface);
|
||||
poll_mouse=1;
|
||||
|
@ -783,7 +780,6 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
LPDIRECTINPUTDEVICE8A iface,DWORD len,LPVOID ptr
|
||||
) {
|
||||
SysMouseImpl *This = (SysMouseImpl *)iface;
|
||||
POINT point;
|
||||
|
||||
#ifndef __REACTOS__
|
||||
EnterCriticalSection(&(This->crit));
|
||||
|
|
|
@ -367,20 +367,20 @@ static NTSTATUS getInterfaceInfoSet( HANDLE tcpFile,
|
|||
DWORD numAddrs;
|
||||
IPAddrEntry *addrs;
|
||||
TDIEntityID ip_ent;
|
||||
int j,k;
|
||||
int j;
|
||||
|
||||
interfaceInfoComplete = FALSE;
|
||||
status = getNthIpEntity( tcpFile, 0, &ip_ent );
|
||||
if( NT_SUCCESS(status) )
|
||||
status = tdiGetIpAddrsForIpEntity
|
||||
( tcpFile, &ip_ent, &addrs, &numAddrs );
|
||||
for( k = 0; k < numAddrs && NT_SUCCESS(status); k++ ) {
|
||||
DPRINT("ADDR %d: index %d (target %d)\n", k, addrs[k].iae_index, infoSetInt[curInterf].if_info.ent.if_index);
|
||||
if( addrs[k].iae_index ==
|
||||
for( j = 0; j < numAddrs && NT_SUCCESS(status); j++ ) {
|
||||
DPRINT("ADDR %d: index %d (target %d)\n", j, addrs[j].iae_index, infoSetInt[curInterf].if_info.ent.if_index);
|
||||
if( addrs[j].iae_index ==
|
||||
infoSetInt[curInterf].if_info.ent.if_index ) {
|
||||
memcpy( &infoSetInt[curInterf].ip_addr,
|
||||
&addrs[k],
|
||||
sizeof( addrs[k] ) );
|
||||
&addrs[j],
|
||||
sizeof( addrs[j] ) );
|
||||
curInterf++;
|
||||
break;
|
||||
}
|
||||
|
@ -847,7 +847,6 @@ NTSTATUS deleteIpAddress( ULONG NteContext )
|
|||
{
|
||||
HANDLE tcpFile;
|
||||
NTSTATUS status = openTcpFile( &tcpFile );
|
||||
USHORT TheNteContext = NteContext;
|
||||
IO_STATUS_BLOCK Iosb;
|
||||
|
||||
DPRINT("Called.\n");
|
||||
|
|
|
@ -92,12 +92,10 @@ typedef VOID (*EnumInterfacesFunc)( HKEY ChildKeyHandle,
|
|||
*/
|
||||
|
||||
static void EnumInterfaces( PVOID Data, EnumInterfacesFunc cb ) {
|
||||
HKEY RegHandle, TcpipHandle;
|
||||
HKEY RegHandle;
|
||||
HKEY ChildKeyHandle = 0;
|
||||
PWCHAR RegKeyToEnumerate =
|
||||
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces";
|
||||
PWCHAR RegKeyForTcpip =
|
||||
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters";
|
||||
PWCHAR ChildKeyName = 0;
|
||||
DWORD CurrentInterface;
|
||||
|
||||
|
@ -202,7 +200,7 @@ static void MakeNameServerList( PNAME_SERVER_LIST_PRIVATE PrivateData ) {
|
|||
}
|
||||
|
||||
PIPHLP_RES_INFO getResInfo() {
|
||||
DWORD result = ERROR_SUCCESS, dwSize, i, ServerCount, ExtraServer;
|
||||
DWORD i, ServerCount, ExtraServer;
|
||||
HKEY hKey;
|
||||
LONG errCode;
|
||||
PWCHAR Str;
|
||||
|
|
|
@ -1529,7 +1529,7 @@ static HRESULT _SHGetProfilesValue(HKEY profilesKey, LPCWSTR szValueName,
|
|||
static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
WCHAR szTemp[MAX_PATH], szProfilesPrefix[MAX_PATH] = { 0 };
|
||||
WCHAR szTemp[MAX_PATH];
|
||||
|
||||
TRACE("%s, %p\n", debugstr_w(szSrc), szDest);
|
||||
|
||||
|
|
|
@ -135,10 +135,8 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
|
|||
WCHAR szResource[0x80], szUserPass[0x40];
|
||||
LPWSTR p;
|
||||
HWND hUserItem, hPassItem;
|
||||
DWORD r, dwMagic = 19;
|
||||
UINT r_len, u_len;
|
||||
UINT r_len;
|
||||
WORD sz;
|
||||
static const WCHAR szColon[] = { ':',0 };
|
||||
static const WCHAR szbs[] = { '/', 0 };
|
||||
|
||||
hUserItem = GetDlgItem( hdlg, IDC_USERNAME );
|
||||
|
@ -158,6 +156,11 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
|
|||
if( bSet )
|
||||
{
|
||||
#ifndef __REACTOS__
|
||||
|
||||
DWORD r, dwMagic = 19;
|
||||
UNIT u_len;
|
||||
static const WCHAR szColon[] = { ':',0 };
|
||||
|
||||
szUserPass[0] = 0;
|
||||
GetWindowTextW( hUserItem, szUserPass,
|
||||
(sizeof szUserPass-1)/sizeof(WCHAR) );
|
||||
|
|
|
@ -723,8 +723,6 @@ BOOL MMDRV_Init(void)
|
|||
char driver_buffer[256];
|
||||
char mapper_buffer[256];
|
||||
char midi_buffer[256];
|
||||
char* p1;
|
||||
char* p2;
|
||||
DWORD type, size;
|
||||
BOOL ret = FALSE;
|
||||
TRACE("()\n");
|
||||
|
@ -751,6 +749,9 @@ BOOL MMDRV_Init(void)
|
|||
}
|
||||
|
||||
#ifndef __REACTOS__
|
||||
char* p1;
|
||||
char* p2;
|
||||
|
||||
p1 = driver_buffer;
|
||||
while (p1) {
|
||||
p2 = strchr(p1, ';');
|
||||
|
|
|
@ -639,7 +639,7 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
default:
|
||||
{
|
||||
int ret = parse(wParam, lParam);
|
||||
parse(wParam, lParam);
|
||||
}
|
||||
} // switch WM_CHAR
|
||||
|
||||
|
|
Loading…
Reference in a new issue