summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-15 20:39:30 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-15 20:39:30 +0300
commit0e27f730525aa2a0dceb46ecce326df9bf8af5a7 (patch)
tree81f9c7fb2277afc738414fbea9329c59ade220c4 /src
parent04eb6f808d9acb5b4c28984f77ebafc0b605a0a4 (diff)
warning fix
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_base.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 002a299366..0def709503 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -197,10 +197,10 @@ LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_PASTE:
case EM_PASTESPECIAL:
if (OpenClipboard(m_message.GetHwnd())) {
- if (HANDLE hClip = GetClipboardData(CF_BITMAP))
- SendHBitmapAsFile((HBITMAP)hClip, m_hContact);
- else if (HANDLE hClip = GetClipboardData(CF_HDROP))
- ProcessFileDrop((HDROP)hClip, m_hContact);
+ if (HANDLE hBitmap = GetClipboardData(CF_BITMAP))
+ SendHBitmapAsFile((HBITMAP)hBitmap, m_hContact);
+ else if (HANDLE hDrop = GetClipboardData(CF_HDROP))
+ ProcessFileDrop((HDROP)hDrop, m_hContact);
CloseClipboard();
}
@@ -239,7 +239,7 @@ LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_KEYDOWN:
if ((GetKeyState(VK_CONTROL) & 0x8000) && wParam == 'V' || (GetKeyState(VK_SHIFT) & 0x8000) && wParam == VK_INSERT) {
- if (IsClipboardFormatAvailable(CF_HDROP)) {
+ if (IsClipboardFormatAvailable(CF_HDROP) || IsClipboardFormatAvailable(CF_BITMAP)) {
m_message.SendMsg(WM_PASTE, 0, 0);
return 0;
}