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
9e82e50e
Commit
9e82e50e
authored
Mar 25, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix crash on NT4 and higher.
parent
f8f4c4ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
profile.c
dlls/kernel32/tests/profile.c
+9
-6
No files found.
dlls/kernel32/tests/profile.c
View file @
9e82e50e
...
@@ -860,13 +860,16 @@ static void test_WritePrivateProfileString(void)
...
@@ -860,13 +860,16 @@ static void test_WritePrivateProfileString(void)
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
DeleteFileA
(
path
);
DeleteFileA
(
path
);
/* empty lpAppName */
if
(
0
)
{
/* empty lpAppName, crashes on NT4 and higher */
data
=
"[]
\r\n
"
data
=
"[]
\r\n
"
"key=string
\r\n
"
;
"key=string
\r\n
"
;
ret
=
WritePrivateProfileStringA
(
""
,
"key"
,
"string"
,
path
);
ret
=
WritePrivateProfileStringA
(
""
,
"key"
,
"string"
,
path
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
DeleteFileA
(
path
);
DeleteFileA
(
path
);
}
/* NULL lpKeyName */
/* NULL lpKeyName */
data
=
""
;
data
=
""
;
...
@@ -878,7 +881,9 @@ static void test_WritePrivateProfileString(void)
...
@@ -878,7 +881,9 @@ static void test_WritePrivateProfileString(void)
}
}
DeleteFileA
(
path
);
DeleteFileA
(
path
);
/* empty lpKeyName */
if
(
0
)
{
/* empty lpKeyName, crashes on NT4 and higher */
data
=
"[App]
\r\n
"
data
=
"[App]
\r\n
"
"=string
\r\n
"
;
"=string
\r\n
"
;
ret
=
WritePrivateProfileStringA
(
"App"
,
""
,
"string"
,
path
);
ret
=
WritePrivateProfileStringA
(
"App"
,
""
,
"string"
,
path
);
...
@@ -888,6 +893,7 @@ static void test_WritePrivateProfileString(void)
...
@@ -888,6 +893,7 @@ static void test_WritePrivateProfileString(void)
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
}
}
DeleteFileA
(
path
);
DeleteFileA
(
path
);
}
/* NULL lpString */
/* NULL lpString */
data
=
""
;
data
=
""
;
...
@@ -904,10 +910,7 @@ static void test_WritePrivateProfileString(void)
...
@@ -904,10 +910,7 @@ static void test_WritePrivateProfileString(void)
"key=
\r\n
"
;
"key=
\r\n
"
;
ret
=
WritePrivateProfileStringA
(
"App"
,
"key"
,
""
,
path
);
ret
=
WritePrivateProfileStringA
(
"App"
,
"key"
,
""
,
path
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
todo_wine
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
{
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
}
DeleteFileA
(
path
);
DeleteFileA
(
path
);
/* empty lpFileName */
/* empty lpFileName */
...
...
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