summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_socket.h4
-rw-r--r--src/socket/ntapi_sc_socket_v1.c4
-rw-r--r--src/socket/ntapi_sc_socket_v2.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index 977dd17..6491786 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -434,8 +434,8 @@ typedef struct _nt_afd_disconnect_info {
/* socket functions */
typedef int32_t __cdecl ntapi_sc_socket(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,
diff --git a/src/socket/ntapi_sc_socket_v1.c b/src/socket/ntapi_sc_socket_v1.c
index bfdfc83..c9b4519 100644
--- a/src/socket/ntapi_sc_socket_v1.c
+++ b/src/socket/ntapi_sc_socket_v1.c
@@ -26,8 +26,8 @@ typedef struct _nt_afd_socket_ea {
int32_t __cdecl __ntapi_sc_socket_v1(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,
diff --git a/src/socket/ntapi_sc_socket_v2.c b/src/socket/ntapi_sc_socket_v2.c
index 0f114fe..2fc30e5 100644
--- a/src/socket/ntapi_sc_socket_v2.c
+++ b/src/socket/ntapi_sc_socket_v2.c
@@ -31,8 +31,8 @@ typedef struct _nt_afd_socket_ea {
int32_t __cdecl __ntapi_sc_socket_v2(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,