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
2a1ce301
Commit
2a1ce301
authored
Jan 06, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't name a local variable 'errno'.
parent
11c72a68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
errno.c
dlls/msvcrt/errno.c
+3
-3
No files found.
dlls/msvcrt/errno.c
View file @
2a1ce301
...
...
@@ -130,7 +130,7 @@ static MSVCRT_invalid_parameter_handler invalid_parameter_handler = NULL;
/* INTERNAL: Set the crt and dos errno's from the OS error given. */
void
msvcrt_set_errno
(
int
err
)
{
int
*
errno
=
MSVCRT__errno
();
int
*
errno
_ptr
=
MSVCRT__errno
();
MSVCRT_ulong
*
doserrno
=
MSVCRT___doserrno
();
*
doserrno
=
err
;
...
...
@@ -138,7 +138,7 @@ void msvcrt_set_errno(int err)
switch
(
err
)
{
#define ERR_CASE(oserr) case oserr:
#define ERR_MAPS(oserr, crterr) case oserr: *errno = crterr; break
#define ERR_MAPS(oserr, crterr) case oserr: *errno
_ptr
= crterr; break
ERR_CASE
(
ERROR_ACCESS_DENIED
)
ERR_CASE
(
ERROR_NETWORK_ACCESS_DENIED
)
ERR_CASE
(
ERROR_CANNOT_MAKE
)
...
...
@@ -184,7 +184,7 @@ void msvcrt_set_errno(int err)
default:
/* Remaining cases map to EINVAL */
/* FIXME: may be missing some errors above */
*
errno
=
MSVCRT_EINVAL
;
*
errno
_ptr
=
MSVCRT_EINVAL
;
}
}
...
...
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