Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mumble_plugin_win32_ptr_type.h')
-rw-r--r--plugins/mumble_plugin_win32_ptr_type.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mumble_plugin_win32_ptr_type.h b/plugins/mumble_plugin_win32_ptr_type.h
index da3d3c3fd..4a1384b0d 100644
--- a/plugins/mumble_plugin_win32_ptr_type.h
+++ b/plugins/mumble_plugin_win32_ptr_type.h
@@ -50,7 +50,7 @@ static inline DWORD getProcess(const wchar_t *exename) {
static inline PTR_TYPE_CONCRETE getModuleAddr(DWORD pid, const wchar_t *modname) {
MODULEENTRY32 me;
- PTR_TYPE_CONCRETE ret = NULL;
+ PTR_TYPE_CONCRETE ret = 0;
me.dwSize = sizeof(me);
HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE|TH32CS_SNAPMODULE32, pid);
if (hSnap != INVALID_HANDLE_VALUE) {
@@ -97,7 +97,7 @@ T peekProc(PTR_TYPE base) {
static bool inline initialize(const std::multimap<std::wstring, unsigned long long int> &pids, const wchar_t *procname, const wchar_t *modname = NULL) {
hProcess = NULL;
- pModule = NULL;
+ pModule = 0;
if (! pids.empty()) {
std::multimap<std::wstring, unsigned long long int>::const_iterator iter = pids.find(std::wstring(procname));
@@ -122,7 +122,7 @@ static bool inline initialize(const std::multimap<std::wstring, unsigned long lo
hProcess=OpenProcess(PROCESS_VM_READ, false, dwPid);
if (!hProcess) {
dwPid = 0;
- pModule = NULL;
+ pModule = 0;
return false;
}
@@ -133,7 +133,7 @@ static void generic_unlock() {
if (hProcess) {
CloseHandle(hProcess);
hProcess = NULL;
- pModule = NULL;
+ pModule = 0;
dwPid = 0;
}
}