https://git.reactos.org/?p=reactos.git;a=commitdiff;h=984284c436d507dd1c3e0734ca2f5c64a35d59d9

commit 984284c436d507dd1c3e0734ca2f5c64a35d59d9
Author:     Johannes Thoma <[email protected]>
AuthorDate: Thu Aug 10 15:51:13 2023 +0200
Commit:     GitHub <[email protected]>
CommitDate: Thu Aug 10 15:51:13 2023 +0200

    [DDK] Fix wsk.h header (#5544)
    
    Some datagram related dispatcher function types (like PFN_WSK_SEND_TO)
    were used before they were declared. This patch moves the use after
    the definition.
---
 sdk/include/ddk/wsk.h | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/sdk/include/ddk/wsk.h b/sdk/include/ddk/wsk.h
index 94d3c1b482f..e9458e8d882 100644
--- a/sdk/include/ddk/wsk.h
+++ b/sdk/include/ddk/wsk.h
@@ -284,23 +284,6 @@ NTSTATUS
     _Inout_ PIRP Irp);
 #endif /* (NTDDI_VERSION >= NTDDI_WIN8) */
 
-typedef struct _WSK_PROVIDER_DATAGRAM_DISPATCH
-{
-#ifdef __cplusplus
-    WSK_PROVIDER_BASIC_DISPATCH Basic;
-#else
-    WSK_PROVIDER_BASIC_DISPATCH;
-#endif
-    PFN_WSK_BIND WskBind;
-    PFN_WSK_SEND_TO WskSendTo;
-    PFN_WSK_RECEIVE_FROM WskReceiveFrom;
-    PFN_WSK_RELEASE_DATAGRAM_INDICATION_LIST WskRelease;
-    PFN_WSK_GET_LOCAL_ADDRESS WskGetLocalAddress;
-#if (NTDDI_VERSION >= NTDDI_WIN8)
-    PFN_WSK_SEND_MESSAGES WskSendMessages;
-#endif
-} WSK_PROVIDER_DATAGRAM_DISPATCH, *PWSK_PROVIDER_DATAGRAM_DISPATCH;
-
 typedef
 NTSTATUS
 (WSKAPI * PFN_WSK_CONNECT) (
@@ -507,6 +490,23 @@ NTSTATUS
     _In_ PWSK_SOCKET Socket,
     _In_ PWSK_DATAGRAM_INDICATION DatagramIndication);
 
+typedef struct _WSK_PROVIDER_DATAGRAM_DISPATCH
+{
+#ifdef __cplusplus
+    WSK_PROVIDER_BASIC_DISPATCH Basic;
+#else
+    WSK_PROVIDER_BASIC_DISPATCH;
+#endif
+    PFN_WSK_BIND WskBind;
+    PFN_WSK_SEND_TO WskSendTo;
+    PFN_WSK_RECEIVE_FROM WskReceiveFrom;
+    PFN_WSK_RELEASE_DATAGRAM_INDICATION_LIST WskRelease;
+    PFN_WSK_GET_LOCAL_ADDRESS WskGetLocalAddress;
+#if (NTDDI_VERSION >= NTDDI_WIN8)
+    PFN_WSK_SEND_MESSAGES WskSendMessages;
+#endif
+} WSK_PROVIDER_DATAGRAM_DISPATCH, *PWSK_PROVIDER_DATAGRAM_DISPATCH;
+
 typedef
 NTSTATUS
 (WSKAPI * PFN_WSK_CLIENT_EVENT)(

Reply via email to