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
a3989b1a
Commit
a3989b1a
authored
Jul 22, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an empty hook function for WSASetBlockingHook to return.
parent
9acb0274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
socket.c
dlls/winsock/socket.c
+10
-3
No files found.
dlls/winsock/socket.c
View file @
a3989b1a
...
...
@@ -201,6 +201,7 @@ typedef struct /* WSAAsyncSelect() control struct */
#define WS_MAX_SOCKETS_PER_PROCESS 128
/* reasonable guess */
#define WS_MAX_UDP_DATAGRAM 1024
static
INT
WINAPI
WSA_DefaultBlockingHook
(
FARPROC
x
);
static
void
*
he_buffer
;
/* typecast for Win16/32 ws_hostent */
static
SEGPTR
he_buffer_seg
;
...
...
@@ -211,7 +212,7 @@ static SEGPTR pe_buffer_seg;
static
char
*
local_buffer
;
static
SEGPTR
dbuffer_seg
;
static
INT
num_startup
;
/* reference counter */
static
FARPROC
blocking_hook
;
static
FARPROC
blocking_hook
=
WSA_DefaultBlockingHook
;
/* function prototypes */
static
int
WS_dup_he
(
struct
hostent
*
p_he
,
int
flag
);
...
...
@@ -3480,6 +3481,12 @@ INT WINAPI WSACancelBlockingCall(void)
return
0
;
}
static
INT
WINAPI
WSA_DefaultBlockingHook
(
FARPROC
x
)
{
FIXME
(
"How was this called?
\n
"
);
return
x
();
}
/***********************************************************************
* WSASetBlockingHook (WINSOCK.109)
...
...
@@ -3510,7 +3517,7 @@ FARPROC WINAPI WSASetBlockingHook(FARPROC lpBlockFunc)
*/
INT16
WINAPI
WSAUnhookBlockingHook16
(
void
)
{
blocking_hook
=
NULL
;
blocking_hook
=
WSA_DefaultBlockingHook
;
return
0
;
}
...
...
@@ -3520,7 +3527,7 @@ INT16 WINAPI WSAUnhookBlockingHook16(void)
*/
INT
WINAPI
WSAUnhookBlockingHook
(
void
)
{
blocking_hook
=
NULL
;
blocking_hook
=
WSA_DefaultBlockingHook
;
return
0
;
}
...
...
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