summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-02-28 06:49:24 -0800
committerGiampaolo Rodola <g.rodola@gmail.com>2019-02-28 06:49:24 -0800
commit280a6caef5b24dbdff2be1ccc888aceb7a9324ea (patch)
tree66bb9822ec6b2bfbdd880955161368d2188ac44d
parentedd4bd3fec71e65ce2006e15b3cf872ce2c11626 (diff)
downloadpsutil-280a6caef5b24dbdff2be1ccc888aceb7a9324ea.tar.gz
fix compiler warning
-rw-r--r--psutil/arch/windows/process_handles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/arch/windows/process_handles.c b/psutil/arch/windows/process_handles.c
index 997278d3..8b899972 100644
--- a/psutil/arch/windows/process_handles.c
+++ b/psutil/arch/windows/process_handles.c
@@ -318,7 +318,7 @@ psutil_get_open_files_getmappedfilename(long dwPid, HANDLE hProcess) {
PyObject* py_path = NULL;
ULONG dwSize = 0;
LPVOID pMem = NULL;
- TCHAR pszFilename[MAX_PATH+1];
+ wchar_t pszFilename[MAX_PATH+1];
if (g_initialized == FALSE)
psutil_get_open_files_init(FALSE);
@@ -409,7 +409,7 @@ psutil_get_open_files_getmappedfilename(long dwPid, HANDLE hProcess) {
}
dwSize = GetMappedFileName(
- GetCurrentProcess(), pMem, pszFilename, MAX_PATH);
+ GetCurrentProcess(), pMem, (LPSTR)pszFilename, MAX_PATH);
if (dwSize == 0) {
/*
printf("[%d] GetMappedFileName (%#x): %#x \n",