diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-24 17:44:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-24 17:44:43 +0300 |
commit | 34db4cfe0976fa12525fd2df18a0e04113e502cc (patch) | |
tree | 50c3b5bd17c7658487e12baf8aab9715c1ccbe97 | |
parent | 27b56ceee4fcda3691b1f714c19cce80b1605ee4 (diff) |
code cleaning
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/pu_utils.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 6fb9642c13..4eba89b258 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -594,8 +594,8 @@ BOOL LogToFile(SESSION_INFO *si, GCEVENT *gce) fclose(hFile);
hFile = nullptr;
if (!PathFileExists(tszNewName))
- CopyFile(si->pszLogFileName, tszNewName, TRUE);
- DeleteFile(si->pszLogFileName);
+ CopyFileW(si->pszLogFileName, tszNewName, TRUE);
+ DeleteFileW(si->pszLogFileName);
}
}
}
diff --git a/src/mir_app/src/pu_utils.cpp b/src/mir_app/src/pu_utils.cpp index 87a78ac374..622f483705 100644 --- a/src/mir_app/src/pu_utils.cpp +++ b/src/mir_app/src/pu_utils.cpp @@ -147,7 +147,7 @@ MIR_APP_DLL(bool) PU::PrepareEscalation() if (hFile != INVALID_HANDLE_VALUE) { // we are admins or UAC is disable, cool CloseHandle(hFile); - DeleteFile(szPath); + DeleteFileW(szPath); return true; } @@ -276,7 +276,7 @@ MIR_APP_DLL(int) PU::SafeMoveFile(const wchar_t *pSrc, const wchar_t *pDst) MIR_APP_DLL(int) PU::SafeDeleteFile(const wchar_t *pwszFile) { if (g_hPipe == nullptr) - return DeleteFile(pwszFile); + return DeleteFileW(pwszFile); return TransactPipe(3, pwszFile, nullptr); } |