mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:45:44 +00:00
- Don't crash if we are already freed
- Some code frees the buffers right after an operation fails which is fine svn path=/branches/aicom-network-fixes/; revision=35297
This commit is contained in:
parent
90f6b947b8
commit
e07f679c75
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address ) {
|
|||
PAFD_MAPBUF Map = (PAFD_MAPBUF)(Buf + Count + Lock);
|
||||
UINT i;
|
||||
|
||||
if( !Buf ) return;
|
||||
|
||||
for( i = 0; i < Count + Lock; i++ ) {
|
||||
if( Map[i].Mdl ) {
|
||||
MmUnlockPages( Map[i].Mdl );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue