uninstaller: Pass RegQueryValueExW() the size of the buffer (Coverity).

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hugh McMaster 2017-05-15 08:02:31 +00:00 committed by Alexandre Julliard
parent 87522d67cf
commit 581533b65c
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ static int FetchFromRootKey(HKEY root)
for (i=0; RegEnumKeyExW( root, i, subKeyName, &sizeOfSubKeyName, NULL, NULL, NULL, NULL ) != ERROR_NO_MORE_ITEMS; ++i)
{
RegOpenKeyExW(root, subKeyName, 0, KEY_READ, &hkeyApp);
size = sizeof(value);
if (!RegQueryValueExW(hkeyApp, SystemComponentW, NULL, &type, (LPBYTE)&value, &size) &&
type == REG_DWORD && value == 1)
{