Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
37a9eac8
Commit
37a9eac8
authored
Jul 21, 2012
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix previous change in w32menu.c.
parent
1ada2e55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/ChangeLog
src/ChangeLog
+1
-1
src/w32menu.c
src/w32menu.c
+2
-2
No files found.
src/ChangeLog
View file @
37a9eac8
...
...
@@ -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 U
INT
_PTR when assigning
* w32menu.c (add_menu_item): Cast to U
LONG
_PTR when assigning
info.dwItemData. Fixes crashes on 64-bit Windows. Suggested by
Fabrice Popineau <fabrice.popineau@supelec.fr>.
...
...
src/w32menu.c
View file @
37a9eac8
...
...
@@ -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 U
INT
_PTR, which is correct for 32-bit and 64-bit
be U
LONG
_PTR, which is correct for 32-bit and 64-bit
Windows alike. MSVC headers get it right; hopefully,
MinGW headers will, too. */
info
.
dwItemData
=
(
U
INT
_PTR
)
XLI
(
wv
->
help
);
info
.
dwItemData
=
(
U
LONG
_PTR
)
XLI
(
wv
->
help
);
}
if
(
wv
->
button_type
==
BUTTON_TYPE_RADIO
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment