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
7886cacb
Commit
7886cacb
authored
Oct 18, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert previous change, OF_EXIST really returns HFILE_ERROR.
parent
bb05f9e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
file.c
dlls/kernel/file.c
+1
-4
file.c
dlls/kernel/tests/file.c
+1
-1
No files found.
dlls/kernel/file.c
View file @
7886cacb
...
...
@@ -2071,8 +2071,5 @@ HFILE WINAPI OpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode )
error:
/* We get here if there was an error opening the file */
ofs
->
nErrCode
=
GetLastError
();
WARN
(
"(%s): return = HFILE_ERROR error= %d
\n
"
,
name
,
ofs
->
nErrCode
);
if
(
mode
&
OF_EXIST
)
return
FALSE
;
else
return
HFILE_ERROR
;
return
HFILE_ERROR
;
}
dlls/kernel/tests/file.c
View file @
7886cacb
...
...
@@ -1410,7 +1410,7 @@ static void test_OpenFile_exists(void)
}
hFile
=
OpenFile
(
".
\\
foo-bar-foo.baz"
,
&
ofs
,
OF_EXIST
);
ok
(
hFile
==
FALSE
,
"hFile != FALSE
: %ld
\n
"
,
GetLastError
());
ok
(
hFile
==
HFILE_ERROR
,
"hFile != HFILE_ERROR
: %ld
\n
"
,
GetLastError
());
}
...
...
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