mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[kernel32]
-OpenConsoleW: Don't crash when wsName is null svn path=/trunk/; revision=47235
This commit is contained in:
@@ -993,11 +993,11 @@ OpenConsoleW(LPCWSTR wsName,
|
||||
ULONG CsrRequest;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
if (0 == _wcsicmp(wsName, L"CONIN$"))
|
||||
if (wsName && 0 == _wcsicmp(wsName, L"CONIN$"))
|
||||
{
|
||||
CsrRequest = MAKE_CSR_API(GET_INPUT_HANDLE, CSR_NATIVE);
|
||||
}
|
||||
else if (0 == _wcsicmp(wsName, L"CONOUT$"))
|
||||
else if (wsName && 0 == _wcsicmp(wsName, L"CONOUT$"))
|
||||
{
|
||||
CsrRequest = MAKE_CSR_API(GET_OUTPUT_HANDLE, CSR_NATIVE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user