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
Open sidebar
emacs
emacs
Commits
6c05ef1e
Commit
6c05ef1e
authored
Apr 26, 1996
by
Richard M. Stallman
Browse files
(getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass buffer
address to `intdos' instead of SI which can be 16-bit.
parent
c7d031ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/msdos.c
src/msdos.c
+7
-0
No files found.
src/msdos.c
View file @
6c05ef1e
...
...
@@ -2093,7 +2093,14 @@ getdefdir (drive, dst)
*
dst
++
=
'/'
;
regs
.
h
.
dl
=
drive
;
#if __DJGPP__ > 1
/* regs.x.si can be 16 or 32 bits, depending on whether _NAIVE_DOS_REGS
or _BORLAND_DOS_REGS have or haven't been defined. We should work
with either, so use regs.d.esi which is always 32 bit-wide. */
regs
.
d
.
esi
=
(
int
)
dst
;
#else
regs
.
x
.
si
=
(
int
)
dst
;
#endif
regs
.
h
.
ah
=
0x47
;
intdos
(
&
regs
,
&
regs
);
return
!
regs
.
x
.
cflag
;
...
...
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