Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
811c4119
Commit
811c4119
authored
Nov 26, 2003
by
Jeff Miller
Committed by
Alexandre Julliard
Nov 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mask off bit 0x80 in the accelerator table entry field fVirt if it's
not the last entry.
parent
96b90570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
resource.c
dlls/user/resource.c
+4
-4
No files found.
dlls/user/resource.c
View file @
811c4119
...
@@ -228,14 +228,14 @@ HACCEL WINAPI CreateAcceleratorTableA(LPACCEL lpaccel, INT cEntries)
...
@@ -228,14 +228,14 @@ HACCEL WINAPI CreateAcceleratorTableA(LPACCEL lpaccel, INT cEntries)
}
}
accel
=
GlobalLock16
(
HACCEL_16
(
hAccel
));
accel
=
GlobalLock16
(
HACCEL_16
(
hAccel
));
for
(
i
=
0
;
i
<
cEntries
;
i
++
)
{
for
(
i
=
0
;
i
<
cEntries
;
i
++
)
{
accel
[
i
].
fVirt
=
lpaccel
[
i
].
fVirt
;
accel
[
i
].
fVirt
=
lpaccel
[
i
].
fVirt
&
~
0x80
;
accel
[
i
].
key
=
lpaccel
[
i
].
key
;
accel
[
i
].
key
=
lpaccel
[
i
].
key
;
accel
[
i
].
cmd
=
lpaccel
[
i
].
cmd
;
accel
[
i
].
cmd
=
lpaccel
[
i
].
cmd
;
}
}
/* Set the end-of-table terminator. */
/* Set the end-of-table terminator. */
accel
[
cEntries
-
1
].
fVirt
|=
0x80
;
accel
[
cEntries
-
1
].
fVirt
|=
0x80
;
TRACE_
(
accel
)(
"Allocated accelerator handle %p
\n
"
,
hAccel
);
TRACE_
(
accel
)(
"Allocated accelerator handle %p
with %d entries
\n
"
,
hAccel
,
cEntries
);
return
hAccel
;
return
hAccel
;
}
}
...
...
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