diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-15 20:29:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-15 20:29:46 +0300 |
commit | 04eb6f808d9acb5b4c28984f77ebafc0b605a0a4 (patch) | |
tree | 66914b36c14ced252058a2ba7a4161b21c760329 /src/mir_app | |
parent | 8afd6543130de3537680fa111fb3e79d7c2998c6 (diff) |
picture file to have JPG extension
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/utils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir_app/src/utils.cpp b/src/mir_app/src/utils.cpp index 1726dcc5ec..b87715a2b2 100644 --- a/src/mir_app/src/utils.cpp +++ b/src/mir_app/src/utils.cpp @@ -379,6 +379,7 @@ void SendHBitmapAsFile(HBITMAP hbmp, MCONTACT hContact) wchar_t wszTempPath[MAX_PATH], wszTempFile[MAX_PATH];
GetTempPathW(_countof(wszTempPath), wszTempPath);
GetTempFileNameW(wszTempPath, L"clip_", 0, wszTempFile);
+ wcscpy(wszTempFile + wcslen(wszTempFile) - 3, L"JPG");
const char *szProto = Proto_GetBaseAccountName(hContact);
int wMyStatus = Proto_GetStatus(szProto);
|