Commit d418cb75 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

schedsvc: Use CRT allocation functions in remaining calls.

parent 554cfb19
......@@ -244,7 +244,7 @@ void schedsvc_auto_start(void)
{
if (!QueryServiceConfigW(service, NULL, 0, &cfg_size) && GetLastError() == ERROR_INSUFFICIENT_BUFFER)
{
cfg = HeapAlloc(GetProcessHeap(), 0, cfg_size);
cfg = malloc(cfg_size);
if (cfg)
{
if (QueryServiceConfigW(service, cfg, cfg_size, &cfg_size))
......@@ -257,7 +257,7 @@ void schedsvc_auto_start(void)
start_type = SERVICE_AUTO_START;
}
}
HeapFree(GetProcessHeap(), 0, cfg);
free(cfg);
}
}
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