summaryrefslogtreecommitdiffhomepage
path: root/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/system')
-rw-r--r--src/system/ntapi_tt_get_system_directory.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/system/ntapi_tt_get_system_directory.c b/src/system/ntapi_tt_get_system_directory.c
index 713826e..4242815 100644
--- a/src/system/ntapi_tt_get_system_directory.c
+++ b/src/system/ntapi_tt_get_system_directory.c
@@ -181,11 +181,8 @@ int32_t __stdcall __ntapi_tt_get_system_directory_dos_path(
/* statfs */
status = __ntapi->tt_statfs(
hsysdir,
- (void *)0,
- (nt_unicode_string *)0,
- &statfs,
- (uintptr_t *)buffer,
- buffer_size,
+ &statfs,sizeof(statfs),
+ (uintptr_t *)buffer,buffer_size,
NT_STATFS_DOS_DRIVE_LETTER);
if (status != NT_STATUS_SUCCESS)