summaryrefslogtreecommitdiff
path: root/plugins/systeminfo/systeminfo.c
diff options
context:
space:
mode:
authorRobert Millan <rmh@debian.org>2007-07-21 12:17:15 +0000
committerRobert Millan <rmh@debian.org>2007-07-21 12:17:15 +0000
commit71743e644815f1735e9dff5d9e26b3daeb183258 (patch)
tree449c803b304a88942eb8683667f5f288fa048a9c /plugins/systeminfo/systeminfo.c
parent90a56ea117d87ab95c14b8c8c6aac4cf9be0aa3f (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.c19
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;