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
407f0d9f
Commit
407f0d9f
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 Win9x and WinME (GetPrivateProfileString).
parent
48f035bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
profile.c
dlls/kernel32/tests/profile.c
+12
-4
No files found.
dlls/kernel32/tests/profile.c
View file @
407f0d9f
...
...
@@ -509,7 +509,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
ret
=
GetPrivateProfileStringA
(
emptystr
,
"name1"
,
NULL
,
buf
,
MAX_PATH
,
filename
);
ok
(
ret
==
0
,
"Expected 0, got %d
\n
"
,
ret
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
!
lstrcmpA
(
buf
,
""
)
||
broken
(
!
lstrcmpA
(
buf
,
"kumquat"
)),
/* Win9x, WinME */
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
emptystr_ok
(
emptystr
),
"AppName modified
\n
"
);
/* lpAppName is empty, lpDefault is empty */
...
...
@@ -576,7 +578,9 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
ret
=
GetPrivateProfileStringA
(
"section1"
,
emptystr
,
NULL
,
buf
,
MAX_PATH
,
filename
);
ok
(
ret
==
0
,
"Expected 0, got %d
\n
"
,
ret
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
!
lstrcmpA
(
buf
,
""
)
||
broken
(
!
lstrcmpA
(
buf
,
"kumquat"
)),
/* Win9x, WinME */
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
emptystr_ok
(
emptystr
),
"KeyName modified
\n
"
);
/* lpKeyName is empty, lpDefault is empty */
...
...
@@ -608,8 +612,12 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
lstrcpyA
(
buf
,
"kumquat"
);
ret
=
GetPrivateProfileStringA
(
"section1"
,
"name1"
,
"default"
,
buf
,
MAX_PATH
,
NULL
);
ok
(
ret
==
7
,
"Expected 7, got %d
\n
"
,
ret
);
ok
(
!
lstrcmpA
(
buf
,
"default"
),
"Expected
\"
default
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
ret
==
7
||
broken
(
ret
==
0
),
/* Win9x, WinME */
"Expected 7, got %d
\n
"
,
ret
);
ok
(
!
lstrcmpA
(
buf
,
"default"
)
||
broken
(
!
lstrcmpA
(
buf
,
"kumquat"
)),
/* Win9x, WinME */
"Expected
\"
default
\"
, got
\"
%s
\"\n
"
,
buf
);
/* lpFileName is empty */
lstrcpyA
(
buf
,
"kumquat"
);
...
...
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