Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ebf4ae03
Commit
ebf4ae03
authored
Nov 21, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe16: Avoid hardcoding array lengths.
parent
954e6eba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
int21.c
dlls/krnl386.exe16/int21.c
+3
-3
int25.c
dlls/krnl386.exe16/int25.c
+1
-1
int26.c
dlls/krnl386.exe16/int26.c
+1
-1
No files found.
dlls/krnl386.exe16/int21.c
View file @
ebf4ae03
...
@@ -336,7 +336,7 @@ static BYTE INT21_MapDrive( BYTE drive )
...
@@ -336,7 +336,7 @@ static BYTE INT21_MapDrive( BYTE drive )
{
{
if
(
drive
)
if
(
drive
)
{
{
WCHAR
drivespec
[
3
]
=
{
'A'
,
':'
,
0
};
WCHAR
drivespec
[]
=
{
'A'
,
':'
,
0
};
UINT
drivetype
;
UINT
drivetype
;
drivespec
[
0
]
+=
drive
-
1
;
drivespec
[
0
]
+=
drive
-
1
;
...
@@ -359,7 +359,7 @@ static BYTE INT21_MapDrive( BYTE drive )
...
@@ -359,7 +359,7 @@ static BYTE INT21_MapDrive( BYTE drive )
*/
*/
static
void
INT21_SetCurrentDrive
(
BYTE
drive
)
static
void
INT21_SetCurrentDrive
(
BYTE
drive
)
{
{
WCHAR
drivespec
[
3
]
=
{
'A'
,
':'
,
0
};
WCHAR
drivespec
[]
=
{
'A'
,
':'
,
0
};
drivespec
[
0
]
+=
drive
;
drivespec
[
0
]
+=
drive
;
...
@@ -2451,7 +2451,7 @@ static void INT21_Ioctl_Block( CONTEXT *context )
...
@@ -2451,7 +2451,7 @@ static void INT21_Ioctl_Block( CONTEXT *context )
{
{
BYTE
*
dataptr
;
BYTE
*
dataptr
;
BYTE
drive
=
INT21_MapDrive
(
BL_reg
(
context
)
);
BYTE
drive
=
INT21_MapDrive
(
BL_reg
(
context
)
);
WCHAR
drivespec
[
4
]
=
{
'A'
,
':'
,
'\\'
,
0
};
WCHAR
drivespec
[]
=
{
'A'
,
':'
,
'\\'
,
0
};
UINT
drivetype
;
UINT
drivetype
;
drivespec
[
0
]
+=
drive
;
drivespec
[
0
]
+=
drive
;
...
...
dlls/krnl386.exe16/int25.c
View file @
ebf4ae03
...
@@ -82,7 +82,7 @@ BOOL DOSVM_RawRead(BYTE drive, DWORD begin, DWORD nr_sect, BYTE *dataptr, BOOL f
...
@@ -82,7 +82,7 @@ BOOL DOSVM_RawRead(BYTE drive, DWORD begin, DWORD nr_sect, BYTE *dataptr, BOOL f
*/
*/
void
WINAPI
DOSVM_Int25Handler
(
CONTEXT
*
context
)
void
WINAPI
DOSVM_Int25Handler
(
CONTEXT
*
context
)
{
{
WCHAR
drivespec
[
4
]
=
{
'A'
,
':'
,
'\\'
,
0
};
WCHAR
drivespec
[]
=
{
'A'
,
':'
,
'\\'
,
0
};
BYTE
*
dataptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Ebx
);
BYTE
*
dataptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Ebx
);
DWORD
begin
;
DWORD
begin
;
DWORD
length
;
DWORD
length
;
...
...
dlls/krnl386.exe16/int26.c
View file @
ebf4ae03
...
@@ -71,7 +71,7 @@ BOOL DOSVM_RawWrite(BYTE drive, DWORD begin, DWORD nr_sect, BYTE *dataptr, BOOL
...
@@ -71,7 +71,7 @@ BOOL DOSVM_RawWrite(BYTE drive, DWORD begin, DWORD nr_sect, BYTE *dataptr, BOOL
*/
*/
void
WINAPI
DOSVM_Int26Handler
(
CONTEXT
*
context
)
void
WINAPI
DOSVM_Int26Handler
(
CONTEXT
*
context
)
{
{
WCHAR
drivespec
[
4
]
=
{
'A'
,
':'
,
'\\'
,
0
};
WCHAR
drivespec
[]
=
{
'A'
,
':'
,
'\\'
,
0
};
BYTE
*
dataptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Ebx
);
BYTE
*
dataptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Ebx
);
DWORD
begin
;
DWORD
begin
;
DWORD
length
;
DWORD
length
;
...
...
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