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
f1308f9b
Commit
f1308f9b
authored
Mar 22, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Mar 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Set last error to ERROR_FILE_NOT_FOUND if lpAppName is NULL.
parent
287b07fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
profile.c
dlls/kernel32/profile.c
+1
-2
profile.c
dlls/kernel32/tests/profile.c
+2
-5
No files found.
dlls/kernel32/profile.c
View file @
f1308f9b
...
...
@@ -1446,8 +1446,7 @@ BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
else
if
(
PROFILE_Open
(
filename
,
TRUE
))
{
if
(
!
section
)
{
FIXME
(
"(NULL?,%s,%s,%s)?
\n
"
,
debugstr_w
(
entry
),
debugstr_w
(
string
),
debugstr_w
(
filename
));
SetLastError
(
ERROR_FILE_NOT_FOUND
);
}
else
{
ret
=
PROFILE_SetString
(
section
,
entry
,
string
,
FALSE
);
PROFILE_FlushFile
();
...
...
dlls/kernel32/tests/profile.c
View file @
f1308f9b
...
...
@@ -855,11 +855,8 @@ static void test_WritePrivateProfileString(void)
SetLastError
(
0xdeadbeef
);
ret
=
WritePrivateProfileStringA
(
NULL
,
"key"
,
"string"
,
path
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
}
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
ok
(
check_file_data
(
path
,
data
),
"File doesn't match
\n
"
);
DeleteFileA
(
path
);
...
...
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