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
08d01923
Commit
08d01923
authored
Dec 10, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print names for Win32 errors too, plus a few more status codes.
parent
2fa87d29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
file.c
server/file.c
+1
-1
trace.c
server/trace.c
+17
-4
No files found.
server/file.c
View file @
08d01923
...
...
@@ -492,7 +492,7 @@ static int set_file_pointer( obj_handle_t handle, unsigned int *low, int *high,
/* also check EPERM due to SuSE7 2.2.16 lseek() EPERM kernel bug */
if
(((
errno
==
EINVAL
)
||
(
errno
==
EPERM
))
&&
(
whence
!=
SEEK_SET
)
&&
(
*
high
<
0
))
set_
error
(
0xc0010000
|
ERROR_NEGATIVE_SEEK
/* FIXME */
);
set_
win32_error
(
ERROR_NEGATIVE_SEEK
);
else
file_set_error
();
release_object
(
file
);
...
...
server/trace.c
View file @
08d01923
...
...
@@ -3100,7 +3100,8 @@ static const char * const req_names[REQ_NB_REQUESTS] = {
static
const
char
*
get_status_name
(
unsigned
int
status
)
{
#define NAME(status) { #status, STATUS_##status }
#define NAME(status) { #status, STATUS_##status }
#define NAME_WIN32(error) { #error, 0xc0010000 | error }
static
const
struct
{
const
char
*
name
;
...
...
@@ -3109,10 +3110,12 @@ static const char *get_status_name( unsigned int status )
{
NAME
(
ACCESS_DENIED
),
NAME
(
ACCESS_VIOLATION
),
NAME
(
ALIAS_EXISTS
),
NAME
(
BUFFER_OVERFLOW
),
NAME
(
CHILD_MUST_BE_VOLATILE
),
NAME
(
DIRECTORY_NOT_EMPTY
),
NAME
(
DISK_FULL
),
NAME
(
DLL_NOT_FOUND
),
NAME
(
FILE_LOCK_CONFLICT
),
NAME
(
INVALID_FILE_FOR_SECTION
),
NAME
(
INVALID_HANDLE
),
...
...
@@ -3120,7 +3123,9 @@ static const char *get_status_name( unsigned int status )
NAME
(
KEY_DELETED
),
NAME
(
MEDIA_WRITE_PROTECTED
),
NAME
(
MUTANT_NOT_OWNED
),
NAME
(
NOT_IMPLEMENTED
),
NAME
(
NOT_REGISTRY_FILE
),
NAME
(
NO_DATA_DETECTED
),
NAME
(
NO_MEMORY
),
NAME
(
NO_MORE_ENTRIES
),
NAME
(
NO_MORE_FILES
),
...
...
@@ -3131,14 +3136,22 @@ static const char *get_status_name( unsigned int status )
NAME
(
OBJECT_PATH_INVALID
),
NAME
(
OBJECT_TYPE_MISMATCH
),
NAME
(
PENDING
),
NAME
(
PIPE_BROKEN
),
NAME
(
PIPE_BUSY
),
NAME
(
PIPE_CONNECTED
),
NAME
(
PIPE_DISCONNECTED
),
NAME
(
PIPE_LISTENING
),
NAME
(
PIPE_NOT_AVAILABLE
),
NAME
(
SEMAPHORE_LIMIT_EXCEEDED
),
NAME
(
SHARING_VIOLATION
),
NAME
(
SUSPEND_COUNT_EXCEEDED
),
NAME
(
TIMEOUT
),
NAME
(
TOO_MANY_OPENED_FILES
),
NAME
(
UNSUCCESSFUL
),
NAME
(
USER_APC
),
NAME
(
WAS_LOCKED
),
NAME_WIN32
(
ERROR_CANNOT_MAKE
),
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