summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
87bd443)
Revert silencing a warning and apply a real fix. Spotted by Thomas.
svn path=/trunk/; revision=57938
/* INCLUDES *****************************************************************/
#include <rtl.h>
/* INCLUDES *****************************************************************/
#include <rtl.h>
#define NDEBUG
#include <debug.h>
#define NDEBUG
#include <debug.h>
{
/* Prepare defaults */
Status = STATUS_SUCCESS;
{
/* Prepare defaults */
Status = STATUS_SUCCESS;
- _PRAGMA_WARNING_SUPPRESS(__WARNING_SIZEOF_COUNTOF_MISMATCH)
- ValueEnd = (PWSTR)((ULONG_PTR)Data + Length) - sizeof(UNICODE_NULL);
+ ValueEnd = (PWSTR)((ULONG_PTR)Data + Length - sizeof(UNICODE_NULL));
p = Data;
/* Loop all strings */
p = Data;
/* Loop all strings */
KeyInfo,
BufferLength,
&ReturnedLength);
KeyInfo,
BufferLength,
&ReturnedLength);
- if (NT_SUCCESS(Status) && (KeyInfo != NULL))
+ if (NT_SUCCESS(Status))
{
/* Check if the name fits */
if (KeyInfo->NameLength <= SubKeyName->MaximumLength)
{
/* Check if the name fits */
if (KeyInfo->NameLength <= SubKeyName->MaximumLength)