Author: fireball
Date: Mon Mar 19 00:55:21 2007
New Revision: 26135
URL:
http://svn.reactos.org/svn/reactos?rev=26135&view=rev
Log:
It's better to zero-initialize these variables before calling
RtlQueryRegistryValues().
Modified:
trunk/reactos/subsystems/win32/win32k/objects/text.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/text.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/text.c Mon Mar 19 00:55:21 2007
@@ -1333,7 +1333,7 @@
DWORD *Count,
DWORD Size)
{
- RTL_QUERY_REGISTRY_TABLE QueryTable[2];
+ RTL_QUERY_REGISTRY_TABLE QueryTable[2] = {{0}};
FONT_FAMILY_INFO_CALLBACK_CONTEXT Context;
NTSTATUS Status;
@@ -3978,7 +3978,7 @@
SubstituteFontFamilyKey(PUNICODE_STRING FaceName,
LPCWSTR Key)
{
- RTL_QUERY_REGISTRY_TABLE QueryTable[2];
+ RTL_QUERY_REGISTRY_TABLE QueryTable[2] = {{0}};
NTSTATUS Status;
UNICODE_STRING Value;