Windows seems to lose knowledge of the callback when it cycles into and
out of S4 so we need to re-register.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
...
);
+XEN_API
+VOID
+LogResume(
+ VOID
+ );
+
// SYSTEM
XEN_API
return Enable;
}
+XEN_API
+VOID
+LogResume(
+ VOID
+ )
+{
+ PLOG_CONTEXT Context = &LogContext;
+
+ if (!Context->Enabled)
+ return;
+
+ (VOID) DbgSetDebugPrintCallback(LogDebugPrint, FALSE);
+ (VOID) DbgSetDebugPrintCallback(LogDebugPrint, TRUE);
+}
+
NTSTATUS
LogInitialize(
- VOID)
+ VOID
+ )
{
PLOG_CONTEXT Context = &LogContext;
ULONG References;
if (!__FdoIsActive(Fdo))
goto not_active;
+ LogResume();
+
HypercallPopulate();
UnplugDevices();