mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Check for invalid ConfigurationContext
- Patch by Daniel Zimmermann with a slight modification by me svn path=/trunk/; revision=40764
This commit is contained in:
@@ -337,6 +337,12 @@ NdisReadConfiguration(
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE,("requested read of %wZ\n", Keyword));
|
||||
|
||||
if (ConfigurationContext == NULL)
|
||||
{
|
||||
NDIS_DbgPrint(MID_TRACE,("invalid parameter ConfigurationContext (0x%x)\n",ConfigurationContext));
|
||||
return;
|
||||
}
|
||||
|
||||
if(
|
||||
!wcsncmp(Keyword->Buffer, L"Environment", Keyword->Length/sizeof(WCHAR)) &&
|
||||
wcslen(L"Environment") == Keyword->Length/sizeof(WCHAR)
|
||||
@@ -907,4 +913,3 @@ NdisOpenConfigurationKeyByName(
|
||||
|
||||
*Status = NDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user