Commit 54f06e6b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wbemprox: Break out of loop when out of memory (Coverity).

parent bf8c45f3
......@@ -924,6 +924,11 @@ static void fill_service( struct table *table )
service = OpenServiceW(manager, services[i].lpServiceName, GENERIC_READ);
QueryServiceConfigW(service, NULL, 0, &size);
config = heap_alloc(size);
if (!config)
{
CloseServiceHandle(service);
break;
}
if (QueryServiceConfigW(service, config, size, &size))
startmode = config->dwStartType;
else
......
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