Author: aandrejevic
Date: Sun Jun 23 13:17:06 2013
New Revision: 59316
URL:
http://svn.reactos.org/svn/reactos?rev=59316&view=rev
Log:
[KERNEL32]
Use the already implemented BaseIsDosApplication instead of BasepCheckDosApp.
Modified:
branches/ntvdm/dll/win32/kernel32/client/proc.c
Modified: branches/ntvdm/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/dll/win32/kernel32/client…
==============================================================================
--- branches/ntvdm/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ branches/ntvdm/dll/win32/kernel32/client/proc.c [iso-8859-1] Sun Jun 23 13:17:06 2013
@@ -181,22 +181,6 @@
{
/* Add this to the certification list */
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
@@ -2877,7 +2861,7 @@
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);