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
73d38b04
Commit
73d38b04
authored
Oct 06, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use better types than long.
parent
29fc53b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
file.c
dlls/kernel32/tests/file.c
+15
-15
No files found.
dlls/kernel32/tests/file.c
View file @
73d38b04
...
...
@@ -77,9 +77,9 @@ static void test__hread( void )
{
HFILE
filehandle
;
char
buffer
[
10000
];
long
bytes_read
;
long
bytes_wanted
;
long
i
;
LONG
bytes_read
;
LONG
bytes_wanted
;
LONG
i
;
BOOL
ret
;
SetFileAttributesA
(
filename
,
FILE_ATTRIBUTE_NORMAL
);
/* be sure to remove stale files */
...
...
@@ -124,10 +124,10 @@ static void test__hwrite( void )
{
HFILE
filehandle
;
char
buffer
[
10000
];
long
bytes_read
;
long
bytes_written
;
long
blocks
;
long
i
;
LONG
bytes_read
;
LONG
bytes_written
;
ULONG
blocks
;
LONG
i
;
char
*
contents
;
HLOCAL
memory_object
;
char
checksum
[
1
];
...
...
@@ -159,7 +159,7 @@ static void test__hwrite( void )
srand
(
(
unsigned
)
time
(
NULL
)
);
for
(
blocks
=
0
;
blocks
<
100
;
blocks
++
)
{
for
(
i
=
0
;
i
<
(
long
)
sizeof
(
buffer
);
i
++
)
for
(
i
=
0
;
i
<
(
LONG
)
sizeof
(
buffer
);
i
++
)
{
buffer
[
i
]
=
rand
(
);
checksum
[
0
]
=
checksum
[
0
]
+
buffer
[
i
];
...
...
@@ -355,7 +355,7 @@ static void test__llseek( void )
INT
i
;
HFILE
filehandle
;
char
buffer
[
1
];
long
bytes_read
;
LONG
bytes_read
;
BOOL
ret
;
filehandle
=
_lcreat
(
filename
,
0
);
...
...
@@ -432,7 +432,7 @@ static void test__lread( void )
{
HFILE
filehandle
;
char
buffer
[
10000
];
long
bytes_read
;
UINT
bytes_read
;
UINT
bytes_wanted
;
UINT
i
;
BOOL
ret
;
...
...
@@ -477,10 +477,10 @@ static void test__lwrite( void )
{
HFILE
filehandle
;
char
buffer
[
10000
];
long
bytes_read
;
long
bytes_written
;
long
blocks
;
long
i
;
UINT
bytes_read
;
UINT
bytes_written
;
UINT
blocks
;
INT
i
;
char
*
contents
;
HLOCAL
memory_object
;
char
checksum
[
1
];
...
...
@@ -512,7 +512,7 @@ static void test__lwrite( void )
srand
(
(
unsigned
)
time
(
NULL
)
);
for
(
blocks
=
0
;
blocks
<
100
;
blocks
++
)
{
for
(
i
=
0
;
i
<
(
long
)
sizeof
(
buffer
);
i
++
)
for
(
i
=
0
;
i
<
(
INT
)
sizeof
(
buffer
);
i
++
)
{
buffer
[
i
]
=
rand
(
);
checksum
[
0
]
=
checksum
[
0
]
+
buffer
[
i
];
...
...
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