mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +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;
|
||||
|
||||
/* Find the application name */
|
||||
RtlDosPathNameToNtPathName_U(lpApplicationName,
|
||||
ApplicationName,
|
||||
NULL,
|
||||
&RelativeName);
|
||||
if (!RtlDosPathNameToNtPathName_U(lpApplicationName,
|
||||
ApplicationName,
|
||||
NULL,
|
||||
&RelativeName))
|
||||
{
|
||||
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
|
||||
DPRINT("ApplicationName %wZ\n", ApplicationName);
|
||||
DPRINT("RelativeName %wZ\n", &RelativeName.DosPath);
|
||||
|
||||
|
@ -442,7 +446,7 @@ BasepMapFile(IN LPCWSTR lpApplicationName,
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Failed to open file\n");
|
||||
SetLastErrorByStatus (Status);
|
||||
SetLastErrorByStatus(Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -1072,6 +1072,11 @@ GetAppName:
|
|||
&StartupInfo,
|
||||
lpProcessInformation);
|
||||
|
||||
case STATUS_OBJECT_NAME_NOT_FOUND:
|
||||
case STATUS_OBJECT_PATH_NOT_FOUND:
|
||||
SetLastErrorByStatus(Status);
|
||||
goto Cleanup;
|
||||
|
||||
default:
|
||||
/* Invalid Image Type */
|
||||
SetLastError(ERROR_BAD_EXE_FORMAT);
|
||||
|
|
Loading…
Reference in a new issue