Skip to content

Commit 88dad98

Browse files
FIX: clipboard copy using 64-bit compatible function
Replace Gdip_SetBitmapToClipboard with SetClipboardData from image.ahk which uses proper "ptr" types for 64-bit Windows compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d4efc8f commit 88dad98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/preview_window.ahk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,8 @@ p::
799799
return
800800
}
801801

802-
Gdip_SetBitmapToClipboard(previewPBitmap)
802+
hBitmap := Gdip_CreateHBITMAPFromBitmap(previewPBitmap, 0xFFFFFFFF)
803+
SetClipboardData(hBitmap)
803804
ToolTip, Copied to clipboard
804805
SetTimer, RemovePreviewToolTip, -2000
805806
return

0 commit comments

Comments
 (0)