You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested on Windows Nano with a native program to test CreateProcessW win32 api with a bad file name, the windows api returns error code 0, the bug is on the win api.
// CPPCreateProcessW.cpp : Defines the entry point for the console application.//
#include"stdafx.h"
#include<windows.h>
#include<stdio.h>
#include<tchar.h>intwmain(int argc, WCHAR *argv[])
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if (argc != 2)
{
printf("Usage: %s [cmdline]\n", argv[0]);
return1;
}
// Start the child process. if (!CreateProcessW(NULL, // No module name (use command line)
argv[1], // Command lineNULL, // Process handle not inheritableNULL, // Thread handle not inheritableFALSE, // Set handle inheritance to FALSE0, // No creation flagsNULL, // Use parent's environment blockNULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi) // Pointer to PROCESS_INFORMATION structure
)
{
printf("CreateProcess failed (%d).\n", GetLastError());
return1;
}
printf("Process Id: %d\n", pi.dwProcessId);
// Wait until child process exits.WaitForSingleObject(pi.hProcess, INFINITE);
// Close process and thread handles. CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
return0;
}
This bug is tracked by Windows team internally, and the fix on corefx, would be to upgrade to the next version of Nano Server upon release. So closing this bug.
This test has been consistently failing for the last several runs, e.g.
http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/outerloop_winnano16_debug_tst/66/consoleText
http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/outerloop_winnano16_debug_tst/65/consoleText
http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/outerloop_winnano16_debug_tst/64/consoleText
The text was updated successfully, but these errors were encountered: