Commit 581533b6 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

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

parent 87522d67
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment