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
407f6ba5
Commit
407f6ba5
authored
May 22, 1999
by
James Juran
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print a more effective (and visible) error message when an application
can't create a socket with type == SOCK_RAW.
parent
b82727b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
winsock.c
misc/winsock.c
+5
-2
No files found.
misc/winsock.c
View file @
407f6ba5
...
...
@@ -1645,7 +1645,7 @@ SOCKET WINAPI WINSOCK_socket(INT af, INT type, INT protocol)
default:
SetLastError
(
WSAEPROTOTYPE
);
return
INVALID_SOCKET
;
}
if
((
sock
=
socket
(
af
,
type
,
protocol
))
>=
0
)
if
((
sock
=
socket
(
af
,
type
,
protocol
))
>=
0
)
{
ws_socket
*
pnew
=
wsi_alloc_socket
(
pwsi
,
sock
);
...
...
@@ -1664,7 +1664,10 @@ SOCKET WINAPI WINSOCK_socket(INT af, INT type, INT protocol)
if
(
errno
==
EPERM
)
/* raw socket denied */
{
WARN
(
winsock
,
"WS_SOCKET: not enough privileges
\n
"
);
if
(
type
==
SOCK_RAW
)
MSG
(
"WARNING: Trying to create a socket of type SOCK_RAW, will fail unless running as root
\n
"
);
else
MSG
(
"WS_SOCKET: not enough privileges to create socket, try running as root
\n
"
);
SetLastError
(
WSAESOCKTNOSUPPORT
);
}
else
SetLastError
(
wsaErrno
());
}
...
...
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