From 13a004a57d3e2edebd2ca9fae9066b3ff5fb9c09 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sun, 23 Jun 2013 13:17:06 +0000 Subject: [PATCH] [KERNEL32] Use the already implemented BaseIsDosApplication instead of BasepCheckDosApp. svn path=/branches/ntvdm/; revision=59316 --- dll/win32/kernel32/client/proc.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c index fee32152f85..e96d0f6e6e5 100644 --- a/dll/win32/kernel32/client/proc.c +++ b/dll/win32/kernel32/client/proc.c @@ -183,22 +183,6 @@ BasepConfigureAppCertDlls(IN PWSTR ValueName, return BasepSaveAppCertRegistryValue(Context, ValueName, ValueData); } - -BOOLEAN -NTAPI -BasepCheckDosApp(IN PUNICODE_STRING ApplicationName) -{ - PWCHAR Extension; - - /* Get the extension from the file name */ - Extension = &ApplicationName->Buffer[ApplicationName->Length / - sizeof(WCHAR) - 4]; - - /* Check if the extension is .COM */ - if (_wcsnicmp(Extension, L".com", 4) == 0) return TRUE; - else return FALSE; -} - NTSTATUS WINAPI BasepIsProcessAllowed(IN PCHAR ApplicationName) @@ -2877,7 +2861,7 @@ GetAppName: case STATUS_INVALID_IMAGE_NOT_MZ: /* If it's a DOS app, use VDM */ - if ((BasepCheckDosApp(&ApplicationName))) + if (BaseIsDosApplication(&ApplicationName, Status)) { DPRINT1("Launching VDM...\n"); RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer); -- 2.17.1