mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00: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:
parent
76224b711b
commit
24b22db77e
2 changed files with 2 additions and 1 deletions
|
@ -372,7 +372,7 @@ EnumerateNetworkAdapter(NetCfgComponentItem ** pHead)
|
||||||
SP_DEVINFO_DATA DevInfo;
|
SP_DEVINFO_DATA DevInfo;
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
WCHAR szNetCfg[50];
|
WCHAR szNetCfg[50];
|
||||||
WCHAR szAdapterNetCfg[50];
|
WCHAR szAdapterNetCfg[MAX_DEVICE_ID_LEN];
|
||||||
WCHAR szDetail[200] = L"SYSTEM\\CurrentControlSet\\Control\\Class\\";
|
WCHAR szDetail[200] = L"SYSTEM\\CurrentControlSet\\Control\\Class\\";
|
||||||
WCHAR szName[130] = L"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\";
|
WCHAR szName[130] = L"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\";
|
||||||
NetCfgComponentItem * pLast = NULL, *pCurrent;
|
NetCfgComponentItem * pLast = NULL, *pCurrent;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <netcfgn.h>
|
#include <netcfgn.h>
|
||||||
#include <devguid.h>
|
#include <devguid.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
|
#include <cfgmgr32.h>
|
||||||
|
|
||||||
#include <wine/debug.h>
|
#include <wine/debug.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue