mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
ntdll: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
668cfb1c5a
commit
d0d28b96a4
@ -145,7 +145,7 @@ struct file_identity
|
||||
};
|
||||
|
||||
static struct file_identity ignored_files[MAX_IGNORED_FILES];
|
||||
static int ignored_files_count;
|
||||
static unsigned int ignored_files_count;
|
||||
|
||||
union file_directory_info
|
||||
{
|
||||
|
@ -1166,7 +1166,7 @@ void fill_cpu_info(void)
|
||||
static inline BOOL logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMATION *data,
|
||||
DWORD *len, DWORD max_len, LOGICAL_PROCESSOR_RELATIONSHIP rel, DWORD id, DWORD proc)
|
||||
{
|
||||
int i;
|
||||
DWORD i;
|
||||
|
||||
for(i=0; i<*len; i++)
|
||||
{
|
||||
@ -1192,7 +1192,7 @@ static inline BOOL logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMAT
|
||||
static inline BOOL logical_proc_info_add_cache(SYSTEM_LOGICAL_PROCESSOR_INFORMATION *data,
|
||||
DWORD *len, DWORD max_len, ULONG_PTR mask, CACHE_DESCRIPTOR *cache)
|
||||
{
|
||||
int i;
|
||||
DWORD i;
|
||||
|
||||
for(i=0; i<*len; i++)
|
||||
{
|
||||
@ -1891,7 +1891,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
|
||||
if (cpus == 0)
|
||||
{
|
||||
static int i = 1;
|
||||
int n;
|
||||
unsigned int n;
|
||||
cpus = min(NtCurrentTeb()->Peb->NumberOfProcessors, out_cpus);
|
||||
len = sizeof(SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION) * cpus;
|
||||
sppi = RtlAllocateHeap(GetProcessHeap(), 0, len);
|
||||
|
@ -1091,7 +1091,8 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
|
||||
const LARGE_INTEGER *timeout, HANDLE signal_object )
|
||||
{
|
||||
NTSTATUS ret;
|
||||
int i, cookie;
|
||||
UINT i;
|
||||
int cookie;
|
||||
BOOL user_apc = FALSE;
|
||||
obj_handle_t obj_handles[MAXIMUM_WAIT_OBJECTS];
|
||||
obj_handle_t apc_handle = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user