summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/wumf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhoUsesMyFiles/wumf.c')
-rw-r--r--plugins/WhoUsesMyFiles/wumf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/WhoUsesMyFiles/wumf.c b/plugins/WhoUsesMyFiles/wumf.c
index 524648185e..03aa576d38 100644
--- a/plugins/WhoUsesMyFiles/wumf.c
+++ b/plugins/WhoUsesMyFiles/wumf.c
@@ -109,7 +109,11 @@ int CALLBACK ConnDlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
ListView_InsertColumn(hList, 3, &lvc);
KillTimer(NULL, 777);
lst = cpy_list(&list);
- SetTimer(NULL, 777, TIME,(TIMERPROC) TimerProc);
+ if (IsUserAnAdmin()) {
+ SetTimer(NULL, 777, TIME,(TIMERPROC) TimerProc);
+ } else {
+ MessageBox(NULL, "Plugin WhoUsesMyFiles requires admin privileges in order to work.", "Miranda IM", MB_OK);
+ }
ShowList(lst, hList);
Utils_RestoreWindowPosition(hWnd, NULL, ModuleName,"conn");
break;