summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/pid2name.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-27 07:36:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-27 07:36:58 +0000
commit1319f3775c793bdfb8299f5757e7c198d7a61339 (patch)
treee132a96411aedeb5b86cdea901b15ff8028f00f5 /plugins/ConnectionNotify/src/pid2name.cpp
parentfd511dcd6739e2994445833ac8f03f01a2c5df95 (diff)
ConnectionNotify common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ConnectionNotify/src/pid2name.cpp')
-rw-r--r--plugins/ConnectionNotify/src/pid2name.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/ConnectionNotify/src/pid2name.cpp b/plugins/ConnectionNotify/src/pid2name.cpp
index 76d7b49441..e30b032bdd 100644
--- a/plugins/ConnectionNotify/src/pid2name.cpp
+++ b/plugins/ConnectionNotify/src/pid2name.cpp
@@ -1,4 +1,4 @@
-#include "ConnectionNotify.h"
+#include "stdafx.h"
void pid2name(DWORD procid, TCHAR *buffer, size_t bufLen)
{
@@ -15,8 +15,7 @@ void pid2name(DWORD procid, TCHAR *buffer, size_t bufLen)
_tcsncpy_s(buffer, bufLen, ProcessStruct.szExeFile, _TRUNCATE);
break;
}
- }
- while( Process32Next( hSnap, &ProcessStruct ));
+ } while (Process32Next(hSnap, &ProcessStruct));
- CloseHandle( hSnap );
+ CloseHandle(hSnap);
}