#include <glib/gmessages.h>
+/* libcaptive/ps/create.c: */
+extern const guint8 PsCreateSystemThread_bogusthread;
+
+
/**
* ZwClose:
* @Handle: Handle from some Zw*() create function.
{
g_return_val_if_fail(Handle!=NULL,STATUS_INVALID_HANDLE);
+ /* FIXME: libcaptive does not yet create the threads (thread objects)
+ * but ntfs.sys will ZwClose() immediately after its PsCreateSystemThread().
+ */
+ if (Handle==(HANDLE)&PsCreateSystemThread_bogusthread)
+ return STATUS_SUCCESS;
+
return NtClose(Handle);
}