mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Silence GCC warnings.
svn path=/trunk/; revision=37919
This commit is contained in:
parent
2772b79efd
commit
32580ec32a
41 changed files with 75 additions and 74 deletions
|
@ -114,7 +114,7 @@ int main (int argc, char **argv)
|
|||
|
||||
if (argc > 1 && _tcsncmp (argv[1], _T("/?"), 2) == 0)
|
||||
{
|
||||
if (LoadString(hApp, IDS_USAGE, buff, 4096 / sizeof(TCHAR)) < 4096 / sizeof(TCHAR))
|
||||
if (LoadString(hApp, IDS_USAGE, buff, 4096 / sizeof(TCHAR)) < (int)(4096 / sizeof(TCHAR)))
|
||||
{
|
||||
CharToOem(buff, buff);
|
||||
ConOutPuts(buff);
|
||||
|
@ -145,7 +145,7 @@ int main (int argc, char **argv)
|
|||
0);
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
if (LoadString(hApp, IDS_FILE_ACCESS, szMsg, sizeof(szMsg) / sizeof(TCHAR)) < sizeof(szMsg) / sizeof(TCHAR))
|
||||
if (LoadString(hApp, IDS_FILE_ACCESS, szMsg, sizeof(szMsg) / sizeof(TCHAR)) < (int)(sizeof(szMsg) / sizeof(TCHAR)))
|
||||
{
|
||||
_stprintf(buff, szMsg, szFullPath);
|
||||
CharToOem(buff, buff);
|
||||
|
|
|
@ -283,7 +283,7 @@ OnInitDialog(IN HWND hwndDlg)
|
|||
BITMAP bitmap;
|
||||
DWORD Result = 0;
|
||||
DWORD iDevNum = 0;
|
||||
INT i;
|
||||
DWORD i;
|
||||
DISPLAY_DEVICE displayDevice;
|
||||
PGLOBAL_DATA pGlobalData;
|
||||
|
||||
|
@ -333,7 +333,7 @@ OnInitDialog(IN HWND hwndDlg)
|
|||
else /* FIXME: incomplete! */
|
||||
{
|
||||
PMONSL_MONINFO pMonitors;
|
||||
INT i;
|
||||
DWORD i;
|
||||
|
||||
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_DEVICE, WM_SETTEXT, 0, (LPARAM)pGlobalData->DisplayDeviceList->DeviceDescription);
|
||||
OnDisplayDeviceChanged(hwndDlg, pGlobalData, pGlobalData->DisplayDeviceList);
|
||||
|
@ -341,7 +341,7 @@ OnInitDialog(IN HWND hwndDlg)
|
|||
pMonitors = (PMONSL_MONINFO)HeapAlloc(GetProcessHeap(), 0, sizeof(MONSL_MONINFO) * Result);
|
||||
if (pMonitors)
|
||||
{
|
||||
INT hack = 1280;
|
||||
DWORD hack = 1280;
|
||||
for (i = 0; i < Result; i++)
|
||||
{
|
||||
pMonitors[i].Position.x = hack * i;
|
||||
|
@ -817,7 +817,7 @@ SettingsPageProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lPar
|
|||
|
||||
case WM_DESTROY:
|
||||
{
|
||||
INT i;
|
||||
DWORD i;
|
||||
PDISPLAY_DEVICE_ENTRY Current = pGlobalData->DisplayDeviceList;
|
||||
|
||||
while (Current != NULL)
|
||||
|
|
|
@ -42,7 +42,7 @@ GetLayoutCount(LPTSTR szLang)
|
|||
HKEY hKey;
|
||||
TCHAR szLayoutID[3 + 1], szPreload[CCH_LAYOUT_ID + 1], szLOLang[MAX_PATH];
|
||||
DWORD dwIndex = 0, dwType, dwSize;
|
||||
INT Count = 0, i, j;
|
||||
UINT Count = 0, i, j;
|
||||
|
||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"),
|
||||
0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
|
||||
|
|
|
@ -214,7 +214,7 @@ GetLayoutName(LPCTSTR szLCID, LPTSTR szName)
|
|||
DWORD dwBufLen;
|
||||
TCHAR szBuf[MAX_PATH], szDispName[MAX_PATH], szIndex[MAX_PATH], szPath[MAX_PATH];
|
||||
HANDLE hLib;
|
||||
int i, j, k;
|
||||
unsigned i, j, k;
|
||||
|
||||
wsprintf(szBuf, _T("SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\%s"), szLCID);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ GetSupportedCP(VOID)
|
|||
Count = SetupGetLineCount(hIntlInf, _T("CodePages"));
|
||||
if (Count <= 0) return FALSE;
|
||||
|
||||
for (Number = 0; Number < Count; Number++)
|
||||
for (Number = 0; Number < (UINT)Count; Number++)
|
||||
{
|
||||
if (SetupGetLineByIndex(hIntlInf, _T("CodePages"), Number, &infCont) &&
|
||||
SetupGetIntField(&infCont, 0, (PINT)&uiCPage))
|
||||
|
|
|
@ -169,7 +169,7 @@ LoadConfig(HWND hwndDlg)
|
|||
memcpy(&pp, &gPP[iCurSel], sizeof(POWER_POLICY));
|
||||
|
||||
uiIndex = (UINT)SendDlgItemMessage(hwndDlg, IDC_ENERGYLIST, CB_GETCURSEL, 0, 0);
|
||||
if(uiIndex != CB_ERR)
|
||||
if(uiIndex != (UINT)CB_ERR)
|
||||
{
|
||||
SendDlgItemMessage(hwndDlg, IDC_ENERGYLIST, CB_GETLBTEXT, uiIndex, (LPARAM)szProfile);
|
||||
if(LoadString(hApplet, IDS_CONFIG1, szTemp, MAX_PATH))
|
||||
|
|
|
@ -775,7 +775,7 @@ StartRecDlgProc(HWND hwndDlg,
|
|||
LRESULT lResult;
|
||||
|
||||
lResult = SendDlgItemMessage(hwndDlg, IDC_STRRECDEBUGCOMBO, CB_GETCURSEL, (WPARAM)0, (LPARAM)0);
|
||||
if (lResult != CB_ERR && lResult != pStartInfo->dwCrashDumpEnabled)
|
||||
if (lResult != CB_ERR && lResult != (LRESULT)pStartInfo->dwCrashDumpEnabled)
|
||||
{
|
||||
if (pStartInfo->dwCrashDumpEnabled == 1 || pStartInfo->dwCrashDumpEnabled == 2)
|
||||
{
|
||||
|
@ -786,7 +786,7 @@ StartRecDlgProc(HWND hwndDlg,
|
|||
SendDlgItemMessageW(hwndDlg, IDC_STRRECDUMPFILE, WM_GETTEXT, (WPARAM)sizeof(pStartInfo->szMinidumpDir) / sizeof(WCHAR), (LPARAM)pStartInfo->szMinidumpDir);
|
||||
}
|
||||
|
||||
pStartInfo->dwCrashDumpEnabled = lResult;
|
||||
pStartInfo->dwCrashDumpEnabled = (DWORD)lResult;
|
||||
SetCrashDlgItems(hwndDlg, pStartInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -553,7 +553,7 @@ MonthCalPaint(IN PMONTHCALWND infoPtr,
|
|||
szDayLen,
|
||||
&TextSize))
|
||||
{
|
||||
RECT rcHighlight = {0};
|
||||
RECT rcHighlight = { 0, 0, 0, 0 };
|
||||
|
||||
rcText.left = rcCell.left + (infoPtr->CellSize.cx / 2) - (TextSize.cx / 2);
|
||||
rcText.top = rcCell.top + (infoPtr->CellSize.cy / 2) - (TextSize.cy / 2);
|
||||
|
|
|
@ -786,7 +786,7 @@ RegCopyTreeA(IN HKEY hKeySrc,
|
|||
IN LPCSTR lpSubKey OPTIONAL,
|
||||
IN HKEY hKeyDest)
|
||||
{
|
||||
UNICODE_STRING SubKeyName = {0};
|
||||
UNICODE_STRING SubKeyName = { 0, 0, NULL };
|
||||
LONG Ret;
|
||||
|
||||
if (lpSubKey != NULL &&
|
||||
|
@ -816,7 +816,7 @@ RegConnectRegistryA(IN LPCSTR lpMachineName,
|
|||
IN HKEY hKey,
|
||||
OUT PHKEY phkResult)
|
||||
{
|
||||
UNICODE_STRING MachineName = {0};
|
||||
UNICODE_STRING MachineName = { 0, 0, NULL };
|
||||
LONG Ret;
|
||||
|
||||
if (lpMachineName != NULL &&
|
||||
|
@ -1414,7 +1414,7 @@ RegDeleteKeyValueA(IN HKEY hKey,
|
|||
IN LPCSTR lpSubKey OPTIONAL,
|
||||
IN LPCSTR lpValueName OPTIONAL)
|
||||
{
|
||||
UNICODE_STRING SubKey = {0}, ValueName = {0};
|
||||
UNICODE_STRING SubKey = { 0, 0, NULL }, ValueName = { 0, 0, NULL };
|
||||
LONG Ret;
|
||||
|
||||
if (lpSubKey != NULL &&
|
||||
|
@ -1828,7 +1828,7 @@ LONG WINAPI
|
|||
RegDeleteTreeA(IN HKEY hKey,
|
||||
IN LPCSTR lpSubKey OPTIONAL)
|
||||
{
|
||||
UNICODE_STRING SubKeyName = {0};
|
||||
UNICODE_STRING SubKeyName = { 0, 0, NULL };
|
||||
LONG Ret;
|
||||
|
||||
if (lpSubKey != NULL &&
|
||||
|
|
|
@ -1530,7 +1530,7 @@ CreateWellKnownSid(IN WELL_KNOWN_SID_TYPE WellKnownSidType,
|
|||
OUT PSID pSid,
|
||||
IN OUT DWORD* cbSid)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
TRACE("(%d, %s, %p, %p)\n", WellKnownSidType, debugstr_sid(DomainSid), pSid, cbSid);
|
||||
|
||||
if (DomainSid != NULL)
|
||||
|
@ -1576,7 +1576,7 @@ BOOL WINAPI
|
|||
IsWellKnownSid(IN PSID pSid,
|
||||
IN WELL_KNOWN_SID_TYPE WellKnownSidType)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
TRACE("(%s, %d)\n", debugstr_sid(pSid), WellKnownSidType);
|
||||
|
||||
for (i = 0; i < sizeof(WellKnownSids) / sizeof(WellKnownSids[0]); i++)
|
||||
|
@ -1638,7 +1638,7 @@ ComputeStringSidSize(LPCWSTR StringSid)
|
|||
}
|
||||
else /* String constant format - Only available in winxp and above */
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < sizeof(WellKnownSids)/sizeof(WellKnownSids[0]); i++)
|
||||
if (!strncmpW(WellKnownSids[i].wstr, StringSid, 2))
|
||||
|
|
|
@ -660,10 +660,10 @@ ProcessLongMidiMessage(
|
|||
DeviceInfo* device_info,
|
||||
MIDIHDR* header)
|
||||
{
|
||||
int index = 0;
|
||||
unsigned int index = 0;
|
||||
UCHAR* midi_bytes = (UCHAR*) header->lpData;
|
||||
|
||||
int msg_index = 0;
|
||||
unsigned int msg_index = 0;
|
||||
UCHAR msg[3];
|
||||
|
||||
/* Initialize the buffer */
|
||||
|
|
|
@ -53,11 +53,11 @@ DnsQuery_A(LPCSTR Name,
|
|||
PVOID *Reserved)
|
||||
{
|
||||
adns_state astate;
|
||||
int quflags = 0, i;
|
||||
int quflags = 0;
|
||||
int adns_error;
|
||||
adns_answer *answer;
|
||||
LPSTR CurrentName;
|
||||
unsigned CNameLoop;
|
||||
unsigned i, CNameLoop;
|
||||
|
||||
*QueryResultSet = 0;
|
||||
|
||||
|
|
|
@ -911,7 +911,7 @@ GetObjectW(HGDIOBJ hGdiObj, int cbSize, LPVOID lpBuffer)
|
|||
}
|
||||
// Poorly written apps are not ReactOS problem!
|
||||
// We fix it here if the size is larger than the default size.
|
||||
if( cbSize > sizeof(ENUMLOGFONTEXDVW) ) cbSize = sizeof(ENUMLOGFONTEXDVW);
|
||||
if( cbSize > (int)sizeof(ENUMLOGFONTEXDVW) ) cbSize = sizeof(ENUMLOGFONTEXDVW);
|
||||
|
||||
Result = NtGdiExtGetObjectW(hGdiObj, cbSize, lpBuffer); // Should handle the copy.
|
||||
|
||||
|
|
|
@ -88,9 +88,6 @@ GetSystemPaletteEntries(HDC hDC,
|
|||
{
|
||||
PALETTEENTRY ippe[256];
|
||||
|
||||
if (cEntries < 0) return 0;
|
||||
else
|
||||
{
|
||||
if ( GetDeviceCaps(hDC, RASTERCAPS) & RC_PALETTE )
|
||||
return NtGdiDoPalette(hDC, iStartIndex, cEntries, ppe, GdiPalGetSystemEntries, FALSE);
|
||||
else
|
||||
|
@ -103,9 +100,9 @@ GetSystemPaletteEntries(HDC hDC,
|
|||
|
||||
if (iStartIndex < 256)
|
||||
{
|
||||
INT Index = 256 - iStartIndex;
|
||||
UINT Index = 256 - iStartIndex;
|
||||
|
||||
if ( Index >= cEntries ) Index = cEntries;
|
||||
if ( Index > cEntries ) Index = cEntries;
|
||||
|
||||
RtlCopyMemory( ppe,
|
||||
&ippe[iStartIndex],
|
||||
|
@ -113,7 +110,7 @@ GetSystemPaletteEntries(HDC hDC,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,8 @@ MirrorRgnByWidth(HRGN hRgn, INT Width, HRGN *phRgn)
|
|||
if ( GetRegionData(hRgn, cRgnDSize, pRgnData) )
|
||||
{
|
||||
HRGN hRgnex;
|
||||
INT i, SaveL = pRgnData->rdh.rcBound.left;
|
||||
UINT i;
|
||||
INT SaveL = pRgnData->rdh.rcBound.left;
|
||||
pRgnData->rdh.rcBound.left = Width - pRgnData->rdh.rcBound.right;
|
||||
pRgnData->rdh.rcBound.right = Width - SaveL;
|
||||
if (pRgnData->rdh.nCount > 0)
|
||||
|
|
|
@ -232,7 +232,7 @@ ProcessIdToHandle(IN DWORD dwProcessId)
|
|||
CLIENT_ID ClientId;
|
||||
|
||||
/* If we don't have a PID, look it up */
|
||||
if (dwProcessId == -1) dwProcessId = (DWORD)CsrGetProcessId();
|
||||
if (dwProcessId == -1U) dwProcessId = (DWORD)CsrGetProcessId();
|
||||
|
||||
/* Open a handle to the process */
|
||||
ClientId.UniqueThread = NULL;
|
||||
|
|
|
@ -216,7 +216,7 @@ UnhandledExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
|||
ULONG ErrorParameters[4];
|
||||
ULONG ErrorResponse;
|
||||
|
||||
if (ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION &&
|
||||
if ((NTSTATUS)ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION &&
|
||||
ExceptionInfo->ExceptionRecord->NumberParameters >= 2)
|
||||
{
|
||||
switch(ExceptionInfo->ExceptionRecord->ExceptionInformation[0])
|
||||
|
@ -269,7 +269,7 @@ UnhandledExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
|||
/* Print a stack trace. */
|
||||
DbgPrint("Unhandled exception\n");
|
||||
DbgPrint("ExceptionCode: %8x\n", ExceptionInfo->ExceptionRecord->ExceptionCode);
|
||||
if (ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION &&
|
||||
if ((NTSTATUS)ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION &&
|
||||
ExceptionInfo->ExceptionRecord->NumberParameters == 2)
|
||||
{
|
||||
DbgPrint("Faulting Address: %8x\n", ExceptionInfo->ExceptionRecord->ExceptionInformation[1]);
|
||||
|
@ -312,7 +312,7 @@ UnhandledExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
|||
ErrorParameters[0] = (ULONG)ExceptionInfo->ExceptionRecord->ExceptionCode;
|
||||
ErrorParameters[1] = (ULONG)ExceptionInfo->ExceptionRecord->ExceptionAddress;
|
||||
|
||||
if (ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION)
|
||||
if ((NTSTATUS)ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION)
|
||||
{
|
||||
/* get the type of operation that caused the access violation */
|
||||
ErrorParameters[2] = ExceptionInfo->ExceptionRecord->ExceptionInformation[0];
|
||||
|
|
|
@ -88,7 +88,7 @@ static RTL_CRITICAL_SECTION_DEBUG NLS_FormatsCS_debug =
|
|||
0, 0, &NLS_FormatsCS,
|
||||
{ &NLS_FormatsCS_debug.ProcessLocksList,
|
||||
&NLS_FormatsCS_debug.ProcessLocksList },
|
||||
0, 0, 0, 0
|
||||
0, 0, 0, 0, 0
|
||||
};
|
||||
static RTL_CRITICAL_SECTION NLS_FormatsCS = { &NLS_FormatsCS_debug, -1, 0, 0, 0, 0 };
|
||||
|
||||
|
|
|
@ -532,7 +532,7 @@ WINAPI
|
|||
SetThreadPriority(HANDLE hThread,
|
||||
int nPriority)
|
||||
{
|
||||
ULONG Prio = nPriority;
|
||||
LONG Prio = nPriority;
|
||||
NTSTATUS Status;
|
||||
|
||||
/* Check if values forcing saturation should be used */
|
||||
|
@ -549,7 +549,7 @@ SetThreadPriority(HANDLE hThread,
|
|||
Status = NtSetInformationThread(hThread,
|
||||
ThreadBasePriority,
|
||||
&Prio,
|
||||
sizeof(ULONG));
|
||||
sizeof(LONG));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Failure */
|
||||
|
|
|
@ -24,7 +24,7 @@ WSPUPCALLTABLE Upcalls;
|
|||
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
|
||||
ULONG SocketCount = 0;
|
||||
PSOCKET_INFORMATION *Sockets = NULL;
|
||||
LIST_ENTRY SockHelpersListHead = {NULL};
|
||||
LIST_ENTRY SockHelpersListHead = { NULL, NULL };
|
||||
ULONG SockAsyncThreadRefCount;
|
||||
HANDLE SockAsyncHelperAfdHandle;
|
||||
HANDLE SockAsyncCompletionPort;
|
||||
|
|
|
@ -650,7 +650,9 @@ CHSourceDlgProc(
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME */;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
default:
|
||||
|
|
|
@ -395,7 +395,7 @@ HDRVR WINAPI OpenDriver(LPCWSTR lpDriverName, LPCWSTR lpSectionName, LPARAM lPar
|
|||
lstrcpynW(libName, lpDriverName, sizeof(libName) / sizeof(WCHAR));
|
||||
|
||||
/* Try and open the driver by filename */
|
||||
if ( lpDrv = DRIVER_TryOpenDriver32(libName, lParam) )
|
||||
if ( (lpDrv = DRIVER_TryOpenDriver32(libName, lParam)) )
|
||||
goto the_end;
|
||||
|
||||
/* If we got here, the file wasn't found. So we assume the caller
|
||||
|
@ -407,7 +407,7 @@ HDRVR WINAPI OpenDriver(LPCWSTR lpDriverName, LPCWSTR lpSectionName, LPARAM lPar
|
|||
if ( DRIVER_GetLibName(lpDriverName, lsn, libName, sizeof(libName)) )
|
||||
{
|
||||
/* Now we have the filename, we can try and load it */
|
||||
if ( lpDrv = DRIVER_TryOpenDriver32(libName, lParam) )
|
||||
if ( (lpDrv = DRIVER_TryOpenDriver32(libName, lParam)) )
|
||||
goto the_end;
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ DxApi(IN DWORD dwFunctionNum,
|
|||
dwFunctionNum -= DD_FIRST_DXAPI;
|
||||
|
||||
if ((lpvOutBuffer == NULL) ||
|
||||
(dwFunctionNum < (DD_FIRST_DXAPI - DD_FIRST_DXAPI)) ||
|
||||
/*(dwFunctionNum < (DD_FIRST_DXAPI - DD_FIRST_DXAPI)) ||*/
|
||||
(dwFunctionNum > (DD_DXAPI_FLUSHVPCAPTUREBUFFERS - DD_FIRST_DXAPI)) ||
|
||||
(gDxApiEntryPoint[dwFunctionNum].pfn == NULL) ||
|
||||
(cbInBuffer != tblCheckInBuffer[dwFunctionNum]) ||
|
||||
|
|
|
@ -43,7 +43,7 @@ DxDdStartupDxGraphics (ULONG SizeEngDrv,
|
|||
{
|
||||
|
||||
PDRVFN drv_func;
|
||||
INT i;
|
||||
UINT i;
|
||||
|
||||
/* Test see if the data is vaild we got from win32k.sys */
|
||||
if ((SizeEngDrv != sizeof(DRVENABLEDATA)) ||
|
||||
|
|
|
@ -357,7 +357,7 @@ VfatGetNameInformation(PFILE_OBJECT FileObject,
|
|||
RtlCopyMemory(NameInfo->FileName, FCB->PathNameU.Buffer, BytesToCopy);
|
||||
|
||||
/* Check if we could write more but are not able to */
|
||||
if (*BufferLength < FCB->PathNameU.Length + FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
|
||||
if (*BufferLength < FCB->PathNameU.Length + (ULONG)FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
|
||||
{
|
||||
/* Return number of bytes written */
|
||||
*BufferLength -= FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]) + BytesToCopy;
|
||||
|
|
|
@ -58,7 +58,7 @@ static ULONG MiniportOIDList[] = {
|
|||
OID_802_3_MAC_OPTIONS
|
||||
};
|
||||
|
||||
DRIVER_INFORMATION DriverInfo = {0};
|
||||
DRIVER_INFORMATION DriverInfo = { NULL, NULL, { NULL, NULL } };
|
||||
NDIS_PHYSICAL_ADDRESS HighestAcceptableMax = NDIS_PHYSICAL_ADDRESS_CONST(-1, -1);
|
||||
|
||||
|
||||
|
@ -161,7 +161,7 @@ static VOID NTAPI MiQueryResources(
|
|||
PNDIS_RESOURCE_LIST AssignedResources;
|
||||
UINT BufferSize = 0;
|
||||
PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor;
|
||||
int i;
|
||||
UINT i;
|
||||
|
||||
NdisMQueryAdapterResources(Status,
|
||||
WrapperConfigurationContext,
|
||||
|
|
|
@ -143,7 +143,7 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField)
|
|||
|
||||
if(NT_SUCCESS(Status))
|
||||
{
|
||||
if(!bFoundFile && atoi(FileName) == CodePage)
|
||||
if(!bFoundFile && (UINT32)atoi(FileName) == CodePage)
|
||||
{
|
||||
// We got the correct file.
|
||||
// Save the offset and loop through the rest of the file table to find the position, where the actual data starts.
|
||||
|
|
|
@ -1637,7 +1637,7 @@ AtapiChipInit(
|
|||
KdPrint2((PRINT_PREFIX "SIISETCLK\n"));
|
||||
GetPciConfig1(0x8a, tmp8);
|
||||
if ((tmp8 & 0x30) != 0x10)
|
||||
ChangePciConfig1(0x8a, (a & 0xcf | 0x10));
|
||||
ChangePciConfig1(0x8a, (a & 0xcf) | 0x10);
|
||||
GetPciConfig1(0x8a, tmp8);
|
||||
if ((tmp8 & 0x30) != 0x10) {
|
||||
KdPrint2((PRINT_PREFIX "Sil 0680 could not set ATA133 clock\n"));
|
||||
|
|
|
@ -1078,7 +1078,7 @@ VideoPortEnumerateChildren(
|
|||
UCHAR ChildDescriptor[256];
|
||||
ULONG ChildId;
|
||||
ULONG Unused;
|
||||
INT i;
|
||||
UINT i;
|
||||
|
||||
DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
|
||||
if (DeviceExtension->DriverExtension->InitializationData.HwGetVideoChildDescriptor == NULL)
|
||||
|
@ -1155,7 +1155,7 @@ VideoPortEnumerateChildren(
|
|||
#ifndef NDEBUG
|
||||
if (ChildType == Monitor)
|
||||
{
|
||||
INT j;
|
||||
UINT j;
|
||||
PUCHAR p = ChildDescriptor;
|
||||
INFO_(VIDEOPRT, "Monitor device enumerated! (ChildId = 0x%x)\n", ChildId);
|
||||
for (j = 0; j < sizeof (ChildDescriptor); j += 8)
|
||||
|
|
|
@ -180,10 +180,10 @@ inline static int wine_ldt_is_empty( const LDT_ENTRY *ent )
|
|||
#ifdef __i386__
|
||||
# ifdef __GNUC__
|
||||
# define __DEFINE_GET_SEG(seg) \
|
||||
extern inline unsigned short wine_get_##seg(void) \
|
||||
static inline unsigned short wine_get_##seg(void) \
|
||||
{ unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
|
||||
# define __DEFINE_SET_SEG(seg) \
|
||||
extern inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
|
||||
static inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
|
||||
# elif defined(_MSC_VER)
|
||||
# define __DEFINE_GET_SEG(seg) \
|
||||
extern inline unsigned short wine_get_##seg(void) \
|
||||
|
|
|
@ -520,7 +520,7 @@ BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCST
|
|||
BOOL16 WINAPI WriteProfileSection16(LPCSTR,LPCSTR);
|
||||
|
||||
/* Some optimizations */
|
||||
extern inline LPVOID WINAPI MapSL( SEGPTR segptr )
|
||||
static inline LPVOID WINAPI MapSL( SEGPTR segptr )
|
||||
{
|
||||
return (char *)wine_ldt_copy.base[SELECTOROF(segptr) >> __AHSHIFT] + OFFSETOF(segptr);
|
||||
}
|
||||
|
|
|
@ -352,7 +352,7 @@ bool ext2_block_map(PEXT2_FILESYS Ext2Sys, PEXT2_INODE inode, ULONG block, ULONG
|
|||
ULONG Index = 0;
|
||||
ULONG dwBlk = 0;
|
||||
PEXT2_SUPER_BLOCK pExt2Sb = Ext2Sys->ext2_sb;
|
||||
int i;
|
||||
UINT i;
|
||||
bool bRet = false;
|
||||
|
||||
Index = block;
|
||||
|
|
|
@ -93,8 +93,7 @@ bool ext2_allocate_group_table(PEXT2_FILESYS fs, ULONG group,
|
|||
PEXT2_BLOCK_BITMAP bmap)
|
||||
{
|
||||
bool retval;
|
||||
ULONG group_blk, start_blk, last_blk, new_blk, blk;
|
||||
int j;
|
||||
ULONG group_blk, start_blk, last_blk, new_blk, blk, j;
|
||||
|
||||
group_blk = fs->ext2_sb->s_first_data_block +
|
||||
(group * fs->ext2_sb->s_blocks_per_group);
|
||||
|
|
|
@ -885,7 +885,7 @@ Ext2Format(
|
|||
* kludgy hack of using the UUID to derive a random jitter value.
|
||||
*/
|
||||
{
|
||||
int i, val;
|
||||
ULONG i, val;
|
||||
|
||||
for (i = 0, val = 0 ; i < sizeof(Ext2Sb.s_uuid); i++)
|
||||
val += Ext2Sb.s_uuid[i];
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include <sys/utime.h>
|
||||
#include <direct.h>
|
||||
|
||||
int *__p__fmode(void);
|
||||
int *__p___mb_cur_max(void);
|
||||
|
||||
|
@ -3323,4 +3324,4 @@ ioinfo * __pioinfo[] = { /* array of pointers to ioinfo arrays [64] */
|
|||
/*********************************************************************
|
||||
* __badioinfo (MSVCRT.@)
|
||||
*/
|
||||
ioinfo __badioinfo = { INVALID_HANDLE_VALUE, WX_TEXT };
|
||||
ioinfo __badioinfo = { INVALID_HANDLE_VALUE, WX_TEXT, { 0, } };
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
size_t mbstowcs (wchar_t *widechar, const char *multibyte, size_t number)
|
||||
{
|
||||
int bytes;
|
||||
int n = 0;
|
||||
size_t n = 0;
|
||||
|
||||
while (n < number) {
|
||||
|
||||
if ((bytes = mbtowc (widechar, multibyte, MB_LEN_MAX)) < 0)
|
||||
return -1;
|
||||
return (size_t) -1;
|
||||
|
||||
if (bytes == 0) {
|
||||
*widechar = (wchar_t) '\0';
|
||||
|
|
|
@ -430,7 +430,7 @@ static void pf_rebuild_format_string( char *p, pf_flags *flags )
|
|||
|
||||
/* pf_integer_conv: prints x to buf, including alternate formats and
|
||||
additional precision digits, but not field characters or the sign */
|
||||
static void pf_integer_conv( char *buf, int buf_len, pf_flags *flags,
|
||||
static void pf_integer_conv( char *buf, unsigned int buf_len, pf_flags *flags,
|
||||
LONGLONG x )
|
||||
{
|
||||
unsigned int base;
|
||||
|
@ -679,7 +679,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
|
|||
* Includes extra bytes: 1 byte for null, 1 byte for sign,
|
||||
4 bytes for exponent, 2 bytes for alternate formats, 1 byte
|
||||
for a decimal, and 1 byte for an additional float digit. */
|
||||
int x_len = ((flags.FieldLength > flags.Precision) ?
|
||||
unsigned x_len = ((flags.FieldLength > flags.Precision) ?
|
||||
flags.FieldLength : flags.Precision) + 10;
|
||||
|
||||
if( x_len >= sizeof number)
|
||||
|
@ -702,7 +702,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
|
|||
* Includes extra bytes: 1 byte for null, 1 byte for sign,
|
||||
4 bytes for exponent, 2 bytes for alternate formats, 1 byte
|
||||
for a decimal, and 1 byte for an additional float digit. */
|
||||
int x_len = ((flags.FieldLength > flags.Precision) ?
|
||||
unsigned x_len = ((flags.FieldLength > flags.Precision) ?
|
||||
flags.FieldLength : flags.Precision) + 10;
|
||||
|
||||
if( x_len >= sizeof number)
|
||||
|
|
|
@ -245,7 +245,7 @@ CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBloc
|
|||
PCHAR PartialString = NULL, BiosVersion;
|
||||
CHAR CpuString[48];
|
||||
PVOID BaseAddress = NULL;
|
||||
LARGE_INTEGER ViewBase = {{0}};
|
||||
LARGE_INTEGER ViewBase = {{0, 0}};
|
||||
ULONG_PTR VideoRomBase;
|
||||
PCHAR CurrentVersion;
|
||||
extern UNICODE_STRING KeRosProcessorName, KeRosBiosDate, KeRosBiosVersion;
|
||||
|
|
|
@ -844,13 +844,13 @@ DbgkpConvertKernelToUserStateChange(IN PDBGUI_WAIT_STATE_CHANGE WaitStateChange,
|
|||
case DbgKmExceptionApi:
|
||||
|
||||
/* Look at the exception code */
|
||||
if (DebugEvent->ApiMsg.Exception.ExceptionRecord.ExceptionCode ==
|
||||
if ((NTSTATUS)DebugEvent->ApiMsg.Exception.ExceptionRecord.ExceptionCode ==
|
||||
STATUS_BREAKPOINT)
|
||||
{
|
||||
/* Update this as a breakpoint exception */
|
||||
WaitStateChange->NewState = DbgBreakpointStateChange;
|
||||
}
|
||||
else if (DebugEvent->ApiMsg.Exception.ExceptionRecord.ExceptionCode ==
|
||||
else if ((NTSTATUS)DebugEvent->ApiMsg.Exception.ExceptionRecord.ExceptionCode ==
|
||||
STATUS_SINGLE_STEP)
|
||||
{
|
||||
/* Update this as a single step exception */
|
||||
|
|
|
@ -39,7 +39,8 @@ RtlGetNtGlobalFlags(VOID)
|
|||
NTSTATUS NTAPI
|
||||
RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
|
||||
{
|
||||
ULONG i, MaxLength;
|
||||
LONG i;
|
||||
ULONG MaxLength;
|
||||
if (lpVersionInformation->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOW) ||
|
||||
lpVersionInformation->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOEXW))
|
||||
{
|
||||
|
|
|
@ -629,7 +629,7 @@ NtAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|||
OUT PACCESS_MASK GrantedAccess,
|
||||
OUT PNTSTATUS AccessStatus)
|
||||
{
|
||||
SECURITY_SUBJECT_CONTEXT SubjectSecurityContext = {0};
|
||||
SECURITY_SUBJECT_CONTEXT SubjectSecurityContext = { NULL, 0, NULL, NULL };
|
||||
KPROCESSOR_MODE PreviousMode;
|
||||
PTOKEN Token;
|
||||
NTSTATUS Status;
|
||||
|
|
Loading…
Reference in a new issue