mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[NETCFGX] Resize a helper buffer to accommodate a device instance id.
This prevent NULL pointer exceptions in calls to INetCfgComponent::GetPnpDevNodeId().
This commit is contained in:
@@ -372,7 +372,7 @@ EnumerateNetworkAdapter(NetCfgComponentItem ** pHead)
|
||||
SP_DEVINFO_DATA DevInfo;
|
||||
HKEY hKey;
|
||||
WCHAR szNetCfg[50];
|
||||
WCHAR szAdapterNetCfg[50];
|
||||
WCHAR szAdapterNetCfg[MAX_DEVICE_ID_LEN];
|
||||
WCHAR szDetail[200] = L"SYSTEM\\CurrentControlSet\\Control\\Class\\";
|
||||
WCHAR szName[130] = L"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\";
|
||||
NetCfgComponentItem * pLast = NULL, *pCurrent;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <netcfgn.h>
|
||||
#include <devguid.h>
|
||||
#include <commctrl.h>
|
||||
#include <cfgmgr32.h>
|
||||
|
||||
#include <wine/debug.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user