diff --git a/lib/procinfo_win.cpp b/lib/procinfo_win.cpp index 390dd3ed1d..6c19076e55 100644 --- a/lib/procinfo_win.cpp +++ b/lib/procinfo_win.cpp @@ -67,7 +67,7 @@ int get_procinfo_XP(vector& pi) { ULONG cbBuffer = 128*1024; // 128k initial buffer PVOID pBuffer = NULL; PSYSTEM_PROCESSES pProcesses = NULL; - statid DWORD pid = 0; + static DWORD pid = 0; if (!pid) { pid = GetCurrentProcessId();