mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
- Fix 5 winetests for CreateProcessA/W
svn path=/trunk/; revision=41402
This commit is contained in:
parent
a06e09c9ea
commit
df5470127f
2 changed files with 14 additions and 5 deletions
|
@ -412,10 +412,14 @@ BasepMapFile(IN LPCWSTR lpApplicationName,
|
||||||
RelativeName.Handle = NULL;
|
RelativeName.Handle = NULL;
|
||||||
|
|
||||||
/* Find the application name */
|
/* Find the application name */
|
||||||
RtlDosPathNameToNtPathName_U(lpApplicationName,
|
if (!RtlDosPathNameToNtPathName_U(lpApplicationName,
|
||||||
ApplicationName,
|
ApplicationName,
|
||||||
NULL,
|
NULL,
|
||||||
&RelativeName);
|
&RelativeName))
|
||||||
|
{
|
||||||
|
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
DPRINT("ApplicationName %wZ\n", ApplicationName);
|
DPRINT("ApplicationName %wZ\n", ApplicationName);
|
||||||
DPRINT("RelativeName %wZ\n", &RelativeName.DosPath);
|
DPRINT("RelativeName %wZ\n", &RelativeName.DosPath);
|
||||||
|
|
||||||
|
@ -442,7 +446,7 @@ BasepMapFile(IN LPCWSTR lpApplicationName,
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("Failed to open file\n");
|
DPRINT1("Failed to open file\n");
|
||||||
SetLastErrorByStatus (Status);
|
SetLastErrorByStatus(Status);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1072,6 +1072,11 @@ GetAppName:
|
||||||
&StartupInfo,
|
&StartupInfo,
|
||||||
lpProcessInformation);
|
lpProcessInformation);
|
||||||
|
|
||||||
|
case STATUS_OBJECT_NAME_NOT_FOUND:
|
||||||
|
case STATUS_OBJECT_PATH_NOT_FOUND:
|
||||||
|
SetLastErrorByStatus(Status);
|
||||||
|
goto Cleanup;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Invalid Image Type */
|
/* Invalid Image Type */
|
||||||
SetLastError(ERROR_BAD_EXE_FORMAT);
|
SetLastError(ERROR_BAD_EXE_FORMAT);
|
||||||
|
|
Loading…
Reference in a new issue