diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-28 06:49:24 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-28 06:49:24 -0800 |
commit | 280a6caef5b24dbdff2be1ccc888aceb7a9324ea (patch) | |
tree | 66bb9822ec6b2bfbdd880955161368d2188ac44d | |
parent | edd4bd3fec71e65ce2006e15b3cf872ce2c11626 (diff) | |
download | psutil-280a6caef5b24dbdff2be1ccc888aceb7a9324ea.tar.gz |
fix compiler warning
-rw-r--r-- | psutil/arch/windows/process_handles.c | 4 |
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", |