Commit graph

17 commits

Author SHA1 Message Date
Cameron Gutman
1fccbafaed - Close the handle on failure
svn path=/branches/aicom-network-fixes/; revision=35116
2008-08-05 01:46:59 +00:00
Cameron Gutman
ac4f9f984d - Fix more leaks
svn path=/branches/aicom-network-fixes/; revision=35106
2008-08-04 16:20:08 +00:00
Cameron Gutman
e3383af168 - Revert the rest of r35080
- The memory is freed in AfdAccept

svn path=/branches/aicom-network-fixes/; revision=35102
2008-08-04 15:19:23 +00:00
Cameron Gutman
23c7498a26 - Revert part of r35080
svn path=/branches/aicom-network-fixes/; revision=35101
2008-08-04 15:16:44 +00:00
Cameron Gutman
23cb7f30fa - Fix 2 more memory leaks
svn path=/branches/aicom-network-fixes/; revision=35080
2008-08-03 18:49:30 +00:00
Cameron Gutman
376173f679 - Fail if we can't allocate memory
- Fix a memory leak
 - Also resize the buffer on STATUS_BUFFER_OVERFLOW

svn path=/branches/aicom-network-fixes/; revision=35076
2008-08-03 18:02:10 +00:00
Cameron Gutman
fa8410c89c - Don't continue if OpenRegistryKey fails
svn path=/branches/aicom-network-fixes/; revision=35073
2008-08-03 17:27:16 +00:00
Cameron Gutman
93abe83cd2 - Check to see if the ZwEnumerateKey call succeeded with the larger buffer and continue if possible
svn path=/branches/aicom-network-fixes/; revision=35055
2008-08-03 05:10:53 +00:00
Cameron Gutman
31bbc55cec - Add some more debug prints for memory allocation/freeing
svn path=/branches/aicom-network-fixes/; revision=35054
2008-08-03 03:05:39 +00:00
Cameron Gutman
312bb6657e - We must assign values to Irp->IoStatus.Status and Irp->IoStatus.Information because the function that called us might not call UnlockAndMaybeComplete to assign those values
svn path=/branches/aicom-network-fixes/; revision=35053
2008-08-03 01:38:05 +00:00
Cameron Gutman
f470e856b1 - Set Irp->IoStatus.Information to 0
- Set Irp->IoStatus.Status before returning

svn path=/branches/aicom-network-fixes/; revision=35046
2008-08-02 20:53:32 +00:00
Cameron Gutman
ca91433bbc - We must complete the IRP if we fail because the function we were called from expects the IRP to be completed after this call
- Return the correct status

svn path=/branches/aicom-network-fixes/; revision=35038
2008-08-02 14:52:19 +00:00
Cameron Gutman
dfd8d6b0c0 - Fix a bug where Irp->IoStatus wasn't set if Status == STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=35024
2008-08-02 03:51:17 +00:00
Cameron Gutman
80709d7858 - Make sure to set Irp->IoStatus.Status to the correct status
svn path=/branches/aicom-network-fixes/; revision=35023
2008-08-02 03:17:53 +00:00
Cameron Gutman
928b81e97f - These should no longer be needed now that TDI doesn't give back invalid IRPs
- I'll look into the canceling issue later

svn path=/branches/aicom-network-fixes/; revision=35014
2008-08-01 17:21:52 +00:00
Cameron Gutman
606652ca08 * Fix many memory leaks by unmapping MDL pages when UnlockAndMaybeComplete and LostSocket are called with Status != STATUS_PENDING
This change should probably be merged to trunk before 0.3.6

svn path=/branches/aicom-network-fixes/; revision=35001
2008-08-01 12:19:18 +00:00
Art Yerkes
c501d8112c Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
2008-08-01 11:32:26 +00:00