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
45a8b643
Commit
45a8b643
authored
Nov 17, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Avoid sizeof in traces.
parent
19b25188
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
file.c
dlls/msvcrt/tests/file.c
+2
-2
No files found.
dlls/msvcrt/tests/file.c
View file @
45a8b643
...
@@ -1237,7 +1237,7 @@ static void test_fopen_s( void )
...
@@ -1237,7 +1237,7 @@ static void test_fopen_s( void )
file
=
fopen
(
name
,
"r"
);
file
=
fopen
(
name
,
"r"
);
ok
(
file
!=
0
,
"fopen failed
\n
"
);
ok
(
file
!=
0
,
"fopen failed
\n
"
);
len
=
fread
(
buff
,
1
,
sizeof
(
name
),
file
);
len
=
fread
(
buff
,
1
,
sizeof
(
name
),
file
);
ok
(
len
==
sizeof
(
name
),
"File length
supposed to be %d, not %d
\n
"
,
sizeof
(
name
)
,
len
);
ok
(
len
==
sizeof
(
name
),
"File length
is %d
\n
"
,
len
);
buff
[
sizeof
(
name
)]
=
'\0'
;
buff
[
sizeof
(
name
)]
=
'\0'
;
ok
(
strcmp
(
name
,
buff
)
==
0
,
"File content mismatch! Got %s, expected %s
\n
"
,
buff
,
name
);
ok
(
strcmp
(
name
,
buff
)
==
0
,
"File content mismatch! Got %s, expected %s
\n
"
,
buff
,
name
);
...
@@ -1278,7 +1278,7 @@ static void test__wfopen_s( void )
...
@@ -1278,7 +1278,7 @@ static void test__wfopen_s( void )
file
=
fopen
(
name
,
"r"
);
file
=
fopen
(
name
,
"r"
);
ok
(
file
!=
0
,
"fopen failed
\n
"
);
ok
(
file
!=
0
,
"fopen failed
\n
"
);
len
=
fread
(
buff
,
1
,
sizeof
(
name
),
file
);
len
=
fread
(
buff
,
1
,
sizeof
(
name
),
file
);
ok
(
len
==
sizeof
(
name
),
"File length
supposed to be %d, not %d
\n
"
,
sizeof
(
name
)
,
len
);
ok
(
len
==
sizeof
(
name
),
"File length
is %d
\n
"
,
len
);
buff
[
sizeof
(
name
)]
=
'\0'
;
buff
[
sizeof
(
name
)]
=
'\0'
;
ok
(
strcmp
(
name
,
buff
)
==
0
,
"File content mismatch! Got %s, expected %s
\n
"
,
buff
,
name
);
ok
(
strcmp
(
name
,
buff
)
==
0
,
"File content mismatch! Got %s, expected %s
\n
"
,
buff
,
name
);
...
...
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