mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-31 00:11:02 +00:00
Fix console output
This commit is contained in:
@@ -352,7 +352,7 @@ namespace
|
|||||||
return STATUS_NOT_FOUND;
|
return STATUS_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS handle_NtQueryVolumeInformationFile(const syscall_context& c, uint64_t /*file_handle*/,
|
NTSTATUS handle_NtQueryVolumeInformationFile(const syscall_context& c, uint64_t file_handle,
|
||||||
uint64_t /*io_status_block*/, uint64_t fs_information,
|
uint64_t /*io_status_block*/, uint64_t fs_information,
|
||||||
ULONG /*length*/,
|
ULONG /*length*/,
|
||||||
FS_INFORMATION_CLASS fs_information_class)
|
FS_INFORMATION_CLASS fs_information_class)
|
||||||
@@ -367,8 +367,16 @@ namespace
|
|||||||
const emulator_object<FILE_FS_DEVICE_INFORMATION> info_obj{c.emu, fs_information};
|
const emulator_object<FILE_FS_DEVICE_INFORMATION> info_obj{c.emu, fs_information};
|
||||||
info_obj.access([&](FILE_FS_DEVICE_INFORMATION& info)
|
info_obj.access([&](FILE_FS_DEVICE_INFORMATION& info)
|
||||||
{
|
{
|
||||||
info.DeviceType = FILE_DEVICE_DISK;
|
if (file_handle == STDOUT_HANDLE.bits)
|
||||||
info.Characteristics = 0x20020;
|
{
|
||||||
|
info.DeviceType = FILE_DEVICE_CONSOLE;
|
||||||
|
info.Characteristics = 0x20000;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
info.DeviceType = FILE_DEVICE_DISK;
|
||||||
|
info.Characteristics = 0x20020;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user