]> git.eshelyaron.com Git - emacs.git/commit
Fix drag-n-drop on MS-Windows
authorCecilio Pardo <cpardo@imayhem.com>
Thu, 14 Nov 2024 08:55:56 +0000 (09:55 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 20 Nov 2024 16:11:27 +0000 (17:11 +0100)
commitd53d13a70a6221007ce1b46d0485482d9029592b
tree5c2caba233c6dd3f2560015c4cd40b93f35421b3
parent5dc765bb17e86649c0989c3940cf137111735b62
Fix drag-n-drop on MS-Windows

* src/w32fns.c (struct w32_drop_target): New member 'ref_count'.
(w32_drop_target_AddRef): Increment reference count.
(w32_drop_target_Release): Decrement reference count, and free the
target only if the reference count is zero.
(w32_createwindow): Initialize reference count.  (Bug#74312)

(cherry picked from commit b83a45eab53b8e6d8f3be45c0acb9a42a5262cb0)
src/w32fns.c