summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorYang You (UU) <[email protected]>2025-11-25 15:06:20 -0800
committerYang You (UU) <[email protected]>2025-11-25 15:06:20 -0800
commitee5cca45e2b748ca92e902e876840986fd3d7f18 (patch)
tree1e7740bbd88ef3a794c56cb2c4f2fbd97a73f543 /network
parent9dbc926ce6e032e6500d46c6890451c17724b766 (diff)
fixing the GitHub code analysis errors
Diffstat (limited to 'network')
-rw-r--r--network/wlan/WIFICX/drivercode/driver.cpp1
-rw-r--r--network/wlan/WIFICX/drivercode/driver.h11
-rw-r--r--network/wlan/WIFICX/drivercode/trace.h2
-rw-r--r--network/wlan/WIFICX/km/wificxsampleclientkm.infbin5966 -> 2896 bytes
-rw-r--r--network/wlan/WIFICX/um/wificxsampleclientum.infbin6504 -> 3154 bytes
5 files changed, 7 insertions, 7 deletions
diff --git a/network/wlan/WIFICX/drivercode/driver.cpp b/network/wlan/WIFICX/drivercode/driver.cpp
index 974d87fb..bbc4d151 100644
--- a/network/wlan/WIFICX/drivercode/driver.cpp
+++ b/network/wlan/WIFICX/drivercode/driver.cpp
@@ -5,7 +5,6 @@
#include "driver.h"
#include "driver.tmh"
-extern "C"
NTSTATUS DriverEntry(
_In_ PDRIVER_OBJECT driverObject,
_In_ PUNICODE_STRING registryPath)
diff --git a/network/wlan/WIFICX/drivercode/driver.h b/network/wlan/WIFICX/drivercode/driver.h
index 8d4f12b7..8573b30e 100644
--- a/network/wlan/WIFICX/drivercode/driver.h
+++ b/network/wlan/WIFICX/drivercode/driver.h
@@ -2,10 +2,11 @@
#pragma once
#include "precomp.h"
-extern "C"
-{
- DRIVER_INITIALIZE DriverEntry;
-}
+WDF_EXTERN_C_START
+
+DRIVER_INITIALIZE DriverEntry;
EVT_WDF_DRIVER_DEVICE_ADD EvtWifiDriverDeviceAdd;
-EVT_WDF_OBJECT_CONTEXT_CLEANUP EvtWifiDriverContextCleanup; \ No newline at end of file
+EVT_WDF_OBJECT_CONTEXT_CLEANUP EvtWifiDriverContextCleanup;
+
+WDF_EXTERN_C_END \ No newline at end of file
diff --git a/network/wlan/WIFICX/drivercode/trace.h b/network/wlan/WIFICX/drivercode/trace.h
index 39b9033d..324e1c87 100644
--- a/network/wlan/WIFICX/drivercode/trace.h
+++ b/network/wlan/WIFICX/drivercode/trace.h
@@ -141,7 +141,7 @@ typedef struct _ByteArray
__inline ByteArray log_lenstr(ULONG len, const void* buf)
{
- ByteArray xs = {0};
+ ByteArray xs{};
xs.usLength = (USHORT)len;
xs.pvBuffer = buf;
return xs;
diff --git a/network/wlan/WIFICX/km/wificxsampleclientkm.inf b/network/wlan/WIFICX/km/wificxsampleclientkm.inf
index a05b7050..a29d9721 100644
--- a/network/wlan/WIFICX/km/wificxsampleclientkm.inf
+++ b/network/wlan/WIFICX/km/wificxsampleclientkm.inf
Binary files differ
diff --git a/network/wlan/WIFICX/um/wificxsampleclientum.inf b/network/wlan/WIFICX/um/wificxsampleclientum.inf
index 174afe55..35477349 100644
--- a/network/wlan/WIFICX/um/wificxsampleclientum.inf
+++ b/network/wlan/WIFICX/um/wificxsampleclientum.inf
Binary files differ