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
8bfd825f
Commit
8bfd825f
authored
Feb 18, 2000
by
Matthew Cline
Committed by
Alexandre Julliard
Feb 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added WARN messages on open errors.
parent
be7aba01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
file.c
files/file.c
+17
-2
No files found.
files/file.c
View file @
8bfd825f
...
...
@@ -349,10 +349,20 @@ HANDLE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
(
access
&
GENERIC_WRITE
))
{
DWORD
lasterror
=
GetLastError
();
if
((
lasterror
==
ERROR_ACCESS_DENIED
)
||
(
lasterror
==
ERROR_WRITE_PROTECT
))
if
((
lasterror
==
ERROR_ACCESS_DENIED
)
||
(
lasterror
==
ERROR_WRITE_PROTECT
))
{
TRACE
(
"Write access failed for file '%s', trying without "
"write access"
,
filename
);
return
FILE_CreateFile
(
filename
,
access
&
~
GENERIC_WRITE
,
sharing
,
sa
,
creation
,
attributes
,
template
);
}
}
if
(
req
->
handle
==
-
1
)
WARN
(
"Unable to create file '%s' (GLE %ld)"
,
filename
,
GetLastError
());
return
req
->
handle
;
}
...
...
@@ -479,8 +489,13 @@ HANDLE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
/* check for filename, don't check for last entry if creating */
if
(
!
DOSFS_GetFullName
(
filename
,
(
creation
==
OPEN_EXISTING
)
||
(
creation
==
TRUNCATE_EXISTING
),
&
full_name
))
(
creation
==
OPEN_EXISTING
)
||
(
creation
==
TRUNCATE_EXISTING
),
&
full_name
))
{
WARN
(
"Unable to get full filename from '%s' (GLE %ld)
\n
"
,
filename
,
GetLastError
());
return
HFILE_ERROR
;
}
return
FILE_CreateFile
(
full_name
.
long_name
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
...
...
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