mirror of
https://github.com/reactos/reactos.git
synced 2024-10-20 16:06:27 +00:00
[KERNEL32]
Use the already implemented BaseIsDosApplication instead of BasepCheckDosApp. svn path=/branches/ntvdm/; revision=59316
This commit is contained in:
parent
4c66e672da
commit
13a004a57d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue