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
3f09ec52
Commit
3f09ec52
authored
Feb 28, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLIENT_WaitReply: don't clear last error on success; fixed callers
accordingly (based on a patch by Juergen Schmied).
parent
32452a46
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
3 deletions
+10
-3
file.c
files/file.c
+3
-0
client.c
scheduler/client.c
+1
-1
event.c
scheduler/event.c
+1
-0
mutex.c
scheduler/mutex.c
+2
-2
semaphore.c
scheduler/semaphore.c
+1
-0
file.c
server/file.c
+1
-0
console.c
win32/console.c
+1
-0
No files found.
files/file.c
View file @
3f09ec52
...
...
@@ -344,6 +344,7 @@ HFILE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
CLIENT_SendRequest
(
REQ_CREATE_FILE
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
filename
,
strlen
(
filename
)
+
1
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
/* If write access failed, retry without GENERIC_WRITE */
...
...
@@ -359,6 +360,7 @@ HFILE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
CLIENT_SendRequest
(
REQ_CREATE_FILE
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
filename
,
strlen
(
filename
)
+
1
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
}
}
...
...
@@ -380,6 +382,7 @@ HFILE FILE_CreateDevice( int client_id, DWORD access, LPSECURITY_ATTRIBUTES sa )
req
.
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
req
.
id
=
client_id
;
CLIENT_SendRequest
(
REQ_CREATE_DEVICE
,
-
1
,
1
,
&
req
,
sizeof
(
req
)
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
return
reply
.
handle
;
}
...
...
scheduler/client.c
View file @
3f09ec52
...
...
@@ -210,7 +210,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd,
remaining
-=
addlen
;
}
SetLastError
(
head
.
type
);
if
(
head
.
type
)
SetLastError
(
head
.
type
);
return
head
.
type
;
/* error code */
}
...
...
scheduler/event.c
View file @
3f09ec52
...
...
@@ -27,6 +27,7 @@ HANDLE WINAPI CreateEventA( SECURITY_ATTRIBUTES *sa, BOOL manual_reset,
req
.
initial_state
=
initial_state
;
req
.
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
CLIENT_SendRequest
(
REQ_CREATE_EVENT
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
name
,
len
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
if
(
reply
.
handle
==
-
1
)
return
0
;
return
reply
.
handle
;
...
...
scheduler/mutex.c
View file @
3f09ec52
...
...
@@ -15,8 +15,7 @@
/***********************************************************************
* CreateMutex32A (KERNEL32.166)
*/
HANDLE
WINAPI
CreateMutexA
(
SECURITY_ATTRIBUTES
*
sa
,
BOOL
owner
,
LPCSTR
name
)
HANDLE
WINAPI
CreateMutexA
(
SECURITY_ATTRIBUTES
*
sa
,
BOOL
owner
,
LPCSTR
name
)
{
struct
create_mutex_request
req
;
struct
create_mutex_reply
reply
;
...
...
@@ -25,6 +24,7 @@ HANDLE WINAPI CreateMutexA( SECURITY_ATTRIBUTES *sa, BOOL owner,
req
.
owned
=
owner
;
req
.
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
CLIENT_SendRequest
(
REQ_CREATE_MUTEX
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
name
,
len
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
if
(
reply
.
handle
==
-
1
)
return
0
;
return
reply
.
handle
;
...
...
scheduler/semaphore.c
View file @
3f09ec52
...
...
@@ -35,6 +35,7 @@ HANDLE WINAPI CreateSemaphoreA( SECURITY_ATTRIBUTES *sa, LONG initial,
req
.
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
CLIENT_SendRequest
(
REQ_CREATE_SEMAPHORE
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
name
,
len
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
if
(
reply
.
handle
==
-
1
)
return
0
;
return
reply
.
handle
;
...
...
server/file.c
View file @
3f09ec52
...
...
@@ -140,6 +140,7 @@ struct object *create_file( int fd, const char *name, unsigned int access,
case
GENERIC_READ
|
GENERIC_WRITE
:
flags
|=
O_RDWR
;
break
;
}
/* FIXME: should set error to ERROR_ALREADY_EXISTS if file existed before */
if
((
fd
=
open
(
name
,
flags
|
O_NONBLOCK
,
(
attrs
&
FILE_ATTRIBUTE_READONLY
)
?
0444
:
0666
))
==
-
1
)
{
...
...
win32/console.c
View file @
3f09ec52
...
...
@@ -444,6 +444,7 @@ HANDLE CONSOLE_OpenHandle( BOOL output, DWORD access, LPSECURITY_ATTRIBUTES sa )
req
.
access
=
access
;
req
.
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
CLIENT_SendRequest
(
REQ_OPEN_CONSOLE
,
-
1
,
1
,
&
req
,
sizeof
(
req
)
);
SetLastError
(
0
);
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
return
reply
.
handle
;
}
...
...
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