Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
3dc1f2df
Commit
3dc1f2df
authored
22 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Changed the SET_AX etc. macros to not return a value.
parent
d76a16e7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/winedos/int31.c
+2
-1
2 additions, 1 deletion
dlls/winedos/int31.c
include/miscemu.h
+16
-16
16 additions, 16 deletions
include/miscemu.h
with
18 additions
and
17 deletions
dlls/winedos/int31.c
+
2
−
1
View file @
3dc1f2df
...
...
@@ -916,7 +916,8 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
case
0x000a
:
/* Allocate selector alias */
TRACE
(
"allocate selector alias (0x%04x)
\n
"
,
BX_reg
(
context
)
);
if
(
!
SET_AX
(
context
,
AllocCStoDSAlias16
(
BX_reg
(
context
)
)))
SET_AX
(
context
,
AllocCStoDSAlias16
(
BX_reg
(
context
)
)
);
if
(
!
AX_reg
(
context
))
{
SET_AX
(
context
,
0x8011
);
/* descriptor unavailable */
SET_CFLAG
(
context
);
...
...
This diff is collapsed.
Click to expand it.
include/miscemu.h
+
16
−
16
View file @
3dc1f2df
...
...
@@ -179,21 +179,21 @@ extern char IO_pp_init(void);
#define RESET_ZFLAG(context) ((context)->EFlags &= ~0x0040)
#define ISV86(context) ((context)->EFlags & 0x00020000)
#define SET_AX(context,val) ((context)->Eax = ((context)->Eax & ~0xffff) | (WORD)(val))
#define SET_BX(context,val) ((context)->Ebx = ((context)->Ebx & ~0xffff) | (WORD)(val))
#define SET_CX(context,val) ((context)->Ecx = ((context)->Ecx & ~0xffff) | (WORD)(val))
#define SET_DX(context,val) ((context)->Edx = ((context)->Edx & ~0xffff) | (WORD)(val))
#define SET_SI(context,val) ((context)->Esi = ((context)->Esi & ~0xffff) | (WORD)(val))
#define SET_DI(context,val) ((context)->Edi = ((context)->Edi & ~0xffff) | (WORD)(val))
#define SET_AL(context,val) ((context)->Eax = ((context)->Eax & ~0xff) | (BYTE)(val))
#define SET_BL(context,val) ((context)->Ebx = ((context)->Ebx & ~0xff) | (BYTE)(val))
#define SET_CL(context,val) ((context)->Ecx = ((context)->Ecx & ~0xff) | (BYTE)(val))
#define SET_DL(context,val) ((context)->Edx = ((context)->Edx & ~0xff) | (BYTE)(val))
#define SET_AH(context,val) ((context)->Eax = ((context)->Eax & ~0xff00) | (((BYTE)(val)) << 8))
#define SET_BH(context,val) ((context)->Ebx = ((context)->Ebx & ~0xff00) | (((BYTE)(val)) << 8))
#define SET_CH(context,val) ((context)->Ecx = ((context)->Ecx & ~0xff00) | (((BYTE)(val)) << 8))
#define SET_DH(context,val) ((context)->Edx = ((context)->Edx & ~0xff00) | (((BYTE)(val)) << 8))
#define SET_AX(context,val)
((void)
((context)->Eax = ((context)->Eax & ~0xffff) | (WORD)(val))
)
#define SET_BX(context,val)
((void)
((context)->Ebx = ((context)->Ebx & ~0xffff) | (WORD)(val))
)
#define SET_CX(context,val)
((void)
((context)->Ecx = ((context)->Ecx & ~0xffff) | (WORD)(val))
)
#define SET_DX(context,val)
((void)
((context)->Edx = ((context)->Edx & ~0xffff) | (WORD)(val))
)
#define SET_SI(context,val)
((void)
((context)->Esi = ((context)->Esi & ~0xffff) | (WORD)(val))
)
#define SET_DI(context,val)
((void)
((context)->Edi = ((context)->Edi & ~0xffff) | (WORD)(val))
)
#define SET_AL(context,val)
((void)
((context)->Eax = ((context)->Eax & ~0xff) | (BYTE)(val))
)
#define SET_BL(context,val)
((void)
((context)->Ebx = ((context)->Ebx & ~0xff) | (BYTE)(val))
)
#define SET_CL(context,val)
((void)
((context)->Ecx = ((context)->Ecx & ~0xff) | (BYTE)(val))
)
#define SET_DL(context,val)
((void)
((context)->Edx = ((context)->Edx & ~0xff) | (BYTE)(val))
)
#define SET_AH(context,val)
((void)
((context)->Eax = ((context)->Eax & ~0xff00) | (((BYTE)(val)) << 8))
)
#define SET_BH(context,val)
((void)
((context)->Ebx = ((context)->Ebx & ~0xff00) | (((BYTE)(val)) << 8))
)
#define SET_CH(context,val)
((void)
((context)->Ecx = ((context)->Ecx & ~0xff00) | (((BYTE)(val)) << 8))
)
#define SET_DH(context,val)
((void)
((context)->Edx = ((context)->Edx & ~0xff00) | (((BYTE)(val)) << 8))
)
#endif
/* __WINE_MISCEMU_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment