Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
87847b47
Commit
87847b47
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: Don't try to load an empty initialization file.
parent
7c3529f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
profile.c
dlls/kernel32/profile.c
+1
-1
profile.c
dlls/kernel32/tests/profile.c
+1
-4
No files found.
dlls/kernel32/profile.c
View file @
87847b47
...
...
@@ -322,7 +322,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
TRACE
(
"%p
\n
"
,
hFile
);
dwFileSize
=
GetFileSize
(
hFile
,
NULL
);
if
(
dwFileSize
==
INVALID_FILE_SIZE
)
if
(
dwFileSize
==
INVALID_FILE_SIZE
||
dwFileSize
==
0
)
return
NULL
;
buffer_base
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwFileSize
);
...
...
dlls/kernel32/tests/profile.c
View file @
87847b47
...
...
@@ -865,10 +865,7 @@ static void test_WritePrivateProfileString(void)
"key=string
\r\n
"
;
ret
=
WritePrivateProfileStringA
(
""
,
"key"
,
"string"
,
path
);
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
);
/* NULL lpKeyName */
...
...
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