diff options
author | Robert Millan <rmh@debian.org> | 2007-07-21 12:17:15 +0000 |
---|---|---|
committer | Robert Millan <rmh@debian.org> | 2007-07-21 12:17:15 +0000 |
commit | 71743e644815f1735e9dff5d9e26b3daeb183258 (patch) | |
tree | 449c803b304a88942eb8683667f5f288fa048a9c /plugins/systeminfo/systeminfo.c | |
parent | 90a56ea117d87ab95c14b8c8c6aac4cf9be0aa3f (diff) |
Remove space checks completely. Turns out the function was acting as no-op and results were based on uninitialised memory (urgh).
r48523
Diffstat (limited to 'plugins/systeminfo/systeminfo.c')
-rw-r--r-- | plugins/systeminfo/systeminfo.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/systeminfo/systeminfo.c b/plugins/systeminfo/systeminfo.c index 43a4769..2f113d5 100644 --- a/plugins/systeminfo/systeminfo.c +++ b/plugins/systeminfo/systeminfo.c @@ -55,25 +55,6 @@ void __declspec(dllexport) keyboard_layout (HWND hwndParent, int string_size, ch pushstring(buf); } -void __declspec(dllexport) freespace (HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra) -{ - EXDLL_INIT(); - BOOL check_quota = 0; - ULARGE_INTEGER free_bytes_available, free_bytes_total; - - popstring(buf); - if( buf[0] == '1' && buf[1] == 0 ){ - check_quota = 1; - } - - popstring(buf); - - GetDiskFreeSpaceExA(buf,&free_bytes_available,NULL,&free_bytes_total); - - wsprintf(buf, "%lu", check_quota ? free_bytes_available.QuadPart : free_bytes_total.QuadPart); - pushstring(buf); -} - BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) { return TRUE; |