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
4d672ba0
Commit
4d672ba0
authored
Sep 11, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use a kernel error code.
parent
73569a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
profile.c
dlls/kernel32/tests/profile.c
+2
-1
No files found.
dlls/kernel32/tests/profile.c
View file @
4d672ba0
...
...
@@ -183,13 +183,14 @@ static void test_profile_sections(void)
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
/* And a real one */
SetLastError
(
0xdeadbeef
);
ret
=
GetPrivateProfileSectionA
(
"section1"
,
buf
,
sizeof
(
buf
),
testfile4
);
for
(
p
=
buf
+
strlen
(
buf
)
+
1
;
*
p
;
p
+=
strlen
(
p
)
+
1
)
p
[
-
1
]
=
','
;
ok
(
ret
==
35
&&
!
strcmp
(
buf
,
"name1=val1,name2=,name3,name4=val4"
),
"wrong section returned(%d): %s
\n
"
,
ret
,
buf
);
ok
(
buf
[
ret
-
1
]
==
0
&&
buf
[
ret
]
==
0
,
"returned buffer not terminated with double-null
\n
"
);
ok
(
GetLastError
()
==
S_OK
,
"expected S_OK
, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS
, got %d
\n
"
,
GetLastError
());
DeleteFileA
(
testfile4
);
}
...
...
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