Make clear a QXLReleaseInfo structure is used

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
This commit is contained in:
Frediano Ziglio 2016-09-12 23:00:26 +01:00
parent 076c9f2085
commit 8fda115197

View File

@ -4027,7 +4027,7 @@ UINT64 QxlDevice::ReleaseOutput(UINT64 output_id)
for (now = output->resources, end = now + output->num_res; now < end; now++) { for (now = output->resources, end = now + output->num_res; now < end; now++) {
RELEASE_RES(*now); RELEASE_RES(*now);
} }
next = *(UINT64*)output->data; next = ((QXLReleaseInfo*)output->data)->next;
FreeMem(output); FreeMem(output);
DbgPrint(TRACE_LEVEL_VERBOSE, ("<---%s\n", __FUNCTION__)); DbgPrint(TRACE_LEVEL_VERBOSE, ("<---%s\n", __FUNCTION__));
return next; return next;