- Fix 5 winetests for CreateProcessA/W

svn path=/trunk/; revision=41402
This commit is contained in:
Dmitry Chapyshev 2009-06-13 12:24:51 +00:00
parent a06e09c9ea
commit df5470127f
2 changed files with 14 additions and 5 deletions

View file

@ -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;
}

View file

@ -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);