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
ab615064
Commit
ab615064
authored
May 06, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed return value of CreateNamedPipe (spotted by Mike McCormack).
parent
5ba50508
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sync.c
dlls/kernel/sync.c
+3
-3
No files found.
dlls/kernel/sync.c
View file @
ab615064
...
@@ -491,7 +491,7 @@ HANDLE WINAPI CreateNamedPipeA( LPCSTR name, DWORD dwOpenMode,
...
@@ -491,7 +491,7 @@ HANDLE WINAPI CreateNamedPipeA( LPCSTR name, DWORD dwOpenMode,
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
buffer
,
MAX_PATH
))
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
buffer
,
MAX_PATH
))
{
{
SetLastError
(
ERROR_FILENAME_EXCED_RANGE
);
SetLastError
(
ERROR_FILENAME_EXCED_RANGE
);
return
0
;
return
INVALID_HANDLE_VALUE
;
}
}
return
CreateNamedPipeW
(
buffer
,
dwOpenMode
,
dwPipeMode
,
nMaxInstances
,
return
CreateNamedPipeW
(
buffer
,
dwOpenMode
,
dwPipeMode
,
nMaxInstances
,
nOutBufferSize
,
nInBufferSize
,
nDefaultTimeOut
,
attr
);
nOutBufferSize
,
nInBufferSize
,
nDefaultTimeOut
,
attr
);
...
@@ -540,8 +540,8 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
...
@@ -540,8 +540,8 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
req
->
timeout
=
nDefaultTimeOut
;
req
->
timeout
=
nDefaultTimeOut
;
wine_server_add_data
(
req
,
name
,
len
*
sizeof
(
WCHAR
)
);
wine_server_add_data
(
req
,
name
,
len
*
sizeof
(
WCHAR
)
);
SetLastError
(
0
);
SetLastError
(
0
);
wine_server_call_err
(
req
)
;
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
handle
;
ret
=
reply
->
handle
;
else
ret
=
INVALID_HANDLE_VALUE
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
return
ret
;
return
ret
;
...
...
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