diff options
author | midipix <writeonce@midipix.org> | 2016-12-25 02:21:53 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-25 02:21:53 -0500 |
commit | d8b4079264a3139f35d784b873d3490b40ffbeff (patch) | |
tree | 9d9f7e51f06167c950ca41e1c4626a37fd9b9061 /src/system | |
parent | 1d3e991a03ff78741f801f88a7bd4ec541bdc99e (diff) | |
download | ntapi-d8b4079264a3139f35d784b873d3490b40ffbeff.tar.bz2 ntapi-d8b4079264a3139f35d784b873d3490b40ffbeff.tar.xz |
{i}stat{fs} interfaces: remove fluff, require valid handle, simplify logic.
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/ntapi_tt_get_system_directory.c | 7 |
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) |