- 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:
Cameron Gutman 2008-08-13 02:55:05 +00:00
parent 90f6b947b8
commit e07f679c75

View file

@ -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 );