From 04eb6f808d9acb5b4c28984f77ebafc0b605a0a4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 Mar 2024 20:29:46 +0300 Subject: picture file to have JPG extension --- src/mir_app/src/utils.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3