Commit 37a9eac8 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix previous change in w32menu.c.

parent 1ada2e55
......@@ -5,7 +5,7 @@
http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00417.html
for the reasons.
* w32menu.c (add_menu_item): Cast to UINT_PTR when assigning
* w32menu.c (add_menu_item): Cast to ULONG_PTR when assigning
info.dwItemData. Fixes crashes on 64-bit Windows. Suggested by
Fabrice Popineau <fabrice.popineau@supelec.fr>.
......
......@@ -1536,10 +1536,10 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
{
/* As of Jul-2012, w32api headers say that dwItemData
has DWORD type, but that's a bug: it should actually
be UINT_PTR, which is correct for 32-bit and 64-bit
be ULONG_PTR, which is correct for 32-bit and 64-bit
Windows alike. MSVC headers get it right; hopefully,
MinGW headers will, too. */
info.dwItemData = (UINT_PTR) XLI (wv->help);
info.dwItemData = (ULONG_PTR) XLI (wv->help);
}
if (wv->button_type == BUTTON_TYPE_RADIO)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment