summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-02-28 06:45:23 -0800
committerGiampaolo Rodola <g.rodola@gmail.com>2019-02-28 06:45:23 -0800
commitedd4bd3fec71e65ce2006e15b3cf872ce2c11626 (patch)
tree21418b582f003b7b882b51be763c9522b12605f5
parente105d6c0c509fb2a568f3985120257c5bf97740d (diff)
downloadpsutil-edd4bd3fec71e65ce2006e15b3cf872ce2c11626.tar.gz
fix compiler warning
-rw-r--r--psutil/arch/windows/process_handles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/arch/windows/process_handles.c b/psutil/arch/windows/process_handles.c
index b639d381..997278d3 100644
--- a/psutil/arch/windows/process_handles.c
+++ b/psutil/arch/windows/process_handles.c
@@ -369,7 +369,7 @@ psutil_get_open_files_getmappedfilename(long dwPid, HANDLE hProcess) {
goto loop_cleanup;
if (!DuplicateHandle(hProcess,
- hHandle->HandleValue,
+ (HANDLE)hHandle->HandleValue,
GetCurrentProcess(),
&hFile,
0,