Also:
Free a XenStore allocation using XSFree
Spell XenServer correctly
Remove the debug eventlog message on shutdown (messages on resume from
suspend, wmi failure and unexpected error conditions remain as these
will be useful for issue identification)
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
if (FAILED(methodExec(wmi,*session, L"RemoveValue", inMethodInst, &outMethodInst)))
goto methodexecfailed;
- outMethodInst->Release();
+ if (outMethodInst != NULL)
+ outMethodInst->Release();
err=0;
inMethodInst->Release();
void
XenstoreFree(void *tofree)
{
- return free(tofree);
+ return XsFree(tofree);
}
eventId = EVENT_XENUSER_S3;
break;
}
- ReportEvent(eventLog, EVENTLOG_SUCCESS, 0, eventId, NULL, 0, 0,
- NULL, NULL);
}
XsLog("Do the shutdown");
__except(EXCEPTION_EXECUTE_HANDLER)
{
__try {
- XsLog("Exception hit");
+ XsLog("Exception hit %x", GetExceptionCode());
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
XenIfaceDevice.DeviceDesc = "XenServer Interface"\r
xeniface.SVCDESC = "XenServer Interface Device Driver"\r
LITESVC_FLAGS= 0x00000800\r
-xenlite.SVCDESC= "XenSerrver Lite Guest Agent"\r
+xenlite.SVCDESC= "XenServer Lite Guest Agent"\r
\r