mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[WIN32K] - Fix uninitialized variable usage
[ADVAPI32] - Fix a TRACE [PCIX] - Fix statements without effect Spotted by MSVC. svn path=/trunk/; revision=53102
This commit is contained in:
parent
571521cb3b
commit
a258b5fbd7
4 changed files with 5 additions and 4 deletions
|
@ -4016,7 +4016,7 @@ RegQueryValueExA(HKEY hkeyorg,
|
|||
static const int info_size = offsetof( KEY_VALUE_PARTIAL_INFORMATION, Data );
|
||||
|
||||
TRACE("(%p,%s,%p,%p,%p,%p=%d)\n",
|
||||
hkey, debugstr_a(name), reserved, type, data, count, count ? *count : 0 );
|
||||
hkeyorg, debugstr_a(name), reserved, type, data, count, count ? *count : 0 );
|
||||
|
||||
if ((data && !count) || reserved) return ERROR_INVALID_PARAMETER;
|
||||
status = MapDefaultKey(&hkey, hkeyorg);
|
||||
|
|
|
@ -204,7 +204,7 @@ Device_SaveLimits(IN PPCI_CONFIGURATOR_CONTEXT Context)
|
|||
/* This function returns TRUE if the BAR was 64-bit, handle this */
|
||||
ASSERT((i + 1) < PCI_TYPE0_ADDRESSES);
|
||||
i++;
|
||||
(&Limit[i])->Type == CmResourceTypeNull;
|
||||
Limit[i].Type = CmResourceTypeNull;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -491,7 +491,7 @@ PPBridge_SaveLimits(IN PPCI_CONFIGURATOR_CONTEXT Context)
|
|||
|
||||
/* Skip the next descriptor since this one is double sized */
|
||||
i++;
|
||||
(&Limit[i])->Type == CmResourceTypeNull;
|
||||
Limit[i].Type = CmResourceTypeNull;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -748,7 +748,8 @@ FASTCALL
|
|||
IntGetGlobalHookHandles(PDESKTOP pdo, int HookId)
|
||||
{
|
||||
PLIST_ENTRY pLastHead, pElem;
|
||||
unsigned i, cHooks;
|
||||
unsigned i = 0;
|
||||
unsigned cHooks = 0;
|
||||
HHOOK *pList;
|
||||
PHOOK pHook;
|
||||
|
||||
|
|
Loading…
Reference in a new issue