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
7099cdeb
Commit
7099cdeb
authored
Jan 28, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some test failures on several platforms.
parent
ee1d767f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
profile.c
dlls/kernel32/tests/profile.c
+12
-5
No files found.
dlls/kernel32/tests/profile.c
View file @
7099cdeb
...
...
@@ -223,10 +223,15 @@ static void test_profile_sections_names(void)
/* Test with exactly fitting buffer */
memset
(
buf
,
0xc
,
sizeof
(
buf
));
ret
=
GetPrivateProfileSectionNamesA
(
buf
,
28
,
testfile3
);
ok
(
ret
==
26
,
"expected return size 26, got %d
\n
"
,
ret
);
ok
(
ret
==
26
||
broken
(
ret
==
28
),
/* Win9x, WinME */
"expected return size 26, got %d
\n
"
,
ret
);
todo_wine
ok
(
buf
[
ret
+
1
]
==
0
&&
buf
[
ret
]
==
0
,
"returned buffer not terminated with double-null
\n
"
);
ok
(
(
buf
[
ret
+
1
]
==
0
&&
buf
[
ret
]
==
0
)
||
/* W2K3 and higher */
broken
(
buf
[
ret
+
1
]
==
0xc
&&
buf
[
ret
]
==
0
)
||
/* NT4, W2K, WinXP */
broken
(
buf
[
ret
-
1
]
==
0
&&
buf
[
ret
-
2
]
==
0
),
/* Win9x, WinME */
"returned buffer not terminated with double-null
\n
"
);
/* Test with a buffer too small */
memset
(
buf
,
0xc
,
sizeof
(
buf
));
ret
=
GetPrivateProfileSectionNamesA
(
buf
,
27
,
testfile3
);
...
...
@@ -258,8 +263,10 @@ static void test_profile_sections_names(void)
memset
(
bufW
,
0xcc
,
sizeof
(
bufW
));
ret
=
GetPrivateProfileSectionNamesW
(
bufW
,
28
,
testfile3W
);
ok
(
ret
==
26
,
"expected return size 26, got %d
\n
"
,
ret
);
ok
(
bufW
[
ret
+
1
]
==
0
&&
bufW
[
ret
]
==
0
,
"returned buffer not terminated with double-null
\n
"
);
ok
(
(
bufW
[
ret
+
1
]
==
0
&&
bufW
[
ret
]
==
0
)
||
/* W2K3 and higher */
broken
(
bufW
[
ret
+
1
]
==
0xcccc
&&
bufW
[
ret
]
==
0
),
/* NT4, W2K, WinXP */
"returned buffer not terminated with double-null
\n
"
);
/* Test with a buffer too small */
memset
(
bufW
,
0xcc
,
sizeof
(
bufW
));
ret
=
GetPrivateProfileSectionNamesW
(
bufW
,
27
,
testfile3W
);
...
...
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