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
2392a363
Commit
2392a363
authored
Apr 12, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Apr 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of non-standard ERROR_UNKNOWN value.
parent
3462299c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
12 deletions
+4
-12
icmp_main.c
dlls/icmp/icmp_main.c
+2
-2
winerror.h
include/winerror.h
+0
-7
file.c
server/file.c
+1
-1
sock.c
server/sock.c
+1
-1
trace.c
server/trace.c
+0
-1
No files found.
dlls/icmp/icmp_main.c
View file @
2392a363
...
...
@@ -325,11 +325,11 @@ DWORD WINAPI IcmpSendEcho(
SetLastError
(
IP_DEST_NET_UNREACHABLE
);
break
;
case
EHOSTUNREACH
:
SetLastError
(
IP_DEST_
NE
T_UNREACHABLE
);
SetLastError
(
IP_DEST_
HOS
T_UNREACHABLE
);
break
;
default:
TRACE
(
"unknown error: errno=%d
\n
"
,
errno
);
SetLastError
(
ERROR_UNKNOWN
);
SetLastError
(
IP_GENERAL_FAILURE
);
}
}
return
0
;
...
...
include/winerror.h
View file @
2392a363
...
...
@@ -62,13 +62,6 @@
/* This macros is obsolete and should not be used in new apps. */
#define ResultFromScode(sc) ((HRESULT)(sc))
/* ERROR_UNKNOWN is a placeholder for error conditions which haven't
* been tested yet so we're not exactly sure what will be returned.
* All instances of ERROR_UNKNOWN should be tested under Win95/NT
* and replaced.
*/
#define ERROR_UNKNOWN 99999
#define NO_ERROR 0
#define ERROR_SUCCESS 0
#define ERROR_INVALID_FUNCTION 1
...
...
server/file.c
View file @
2392a363
...
...
@@ -373,7 +373,7 @@ void file_set_error(void)
#ifdef EOVERFLOW
case
EOVERFLOW
:
set_error
(
STATUS_INVALID_PARAMETER
);
break
;
#endif
default:
perror
(
"file_set_error"
);
set_
win32_error
(
ERROR_UNKNOWN
);
break
;
default:
perror
(
"file_set_error"
);
set_
error
(
STATUS_UNSUCCESSFUL
);
break
;
}
}
...
...
server/sock.c
View file @
2392a363
...
...
@@ -755,7 +755,7 @@ static int sock_get_error( int err )
#ifdef EREMOTE
case
EREMOTE
:
return
WSAEREMOTE
;
break
;
#endif
default:
errno
=
err
;
perror
(
"sock_set_error"
);
return
ERROR_UNKNOWN
;
break
;
default:
errno
=
err
;
perror
(
"sock_set_error"
);
return
WSAEFAULT
;
break
;
}
}
...
...
server/trace.c
View file @
2392a363
...
...
@@ -3117,7 +3117,6 @@ static const char *get_status_name( unsigned int status )
NAME_WIN32
(
ERROR_INVALID_INDEX
),
NAME_WIN32
(
ERROR_NEGATIVE_SEEK
),
NAME_WIN32
(
ERROR_SEEK
),
NAME_WIN32
(
ERROR_UNKNOWN
),
{
NULL
,
0
}
/* terminator */
};
#undef NAME
...
...
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