From: short <> Date: Mon, 10 Nov 2003 21:16:19 +0000 (+0000) Subject: IoCreateSymbolicLink(): +Debug dump parameters. X-Git-Tag: captive-1_1~27 X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=1e6252b085a61b60df9f663427901ee1ced4d537;hp=d9fd069798da6b15366e53b55735751be7f9b39a IoCreateSymbolicLink(): +Debug dump parameters. IoCreateSymbolicLink(): Return nop/STATUS_SUCCESS for some 'secdrv.sys' links. --- diff --git a/src/libcaptive/io/symlink.c b/src/libcaptive/io/symlink.c index a005159..fe82da4 100644 --- a/src/libcaptive/io/symlink.c +++ b/src/libcaptive/io/symlink.c @@ -21,6 +21,7 @@ #include "reactos/ddk/iofuncs.h" /* self */ #include +#include "captive/unicode.h" /** @@ -38,5 +39,16 @@ NTSTATUS IoCreateSymbolicLink(PUNICODE_STRING SymbolicLinkName,PUNICODE_STRING D g_return_val_if_fail(SymbolicLinkName!=NULL,STATUS_INVALID_PARAMETER); g_return_val_if_fail(DeviceName!=NULL,STATUS_INVALID_PARAMETER); + g_log(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG,"%s: SymbolicLinkName=%s,DeviceName=%s",G_STRLOC, + captive_UnicodeString_to_utf8_alloca(SymbolicLinkName), + captive_UnicodeString_to_utf8_alloca(DeviceName)); + + if (!strcmp(captive_UnicodeString_to_utf8_alloca(SymbolicLinkName),"\\DosDevices\\AscKmd") + && !strcmp(captive_UnicodeString_to_utf8_alloca(DeviceName),"\\Device\\AscKmd")) + return STATUS_SUCCESS; + if (!strcmp(captive_UnicodeString_to_utf8_alloca(SymbolicLinkName),"\\DosDevices\\Secdrv") + && !strcmp(captive_UnicodeString_to_utf8_alloca(DeviceName),"\\Device\\Secdrv")) + return STATUS_SUCCESS; + return STATUS_NOT_IMPLEMENTED; }