[libwin32] r548 committed - Don't call 'delete [] p' on void pointers

1 view
Skip to first unread message

libw...@googlecode.com

unread,
Jan 17, 2011, 7:39:37 PM1/17/11
to libwin32...@googlegroups.com
Revision: 548
Author: j...@jandubois.com
Date: Mon Jan 17 16:39:04 2011
Log: Don't call 'delete [] p' on void pointers
http://code.google.com/p/libwin32/source/detail?r=548

Modified:
/trunk/Win32-Daemon/CWinStation.cpp

=======================================
--- /trunk/Win32-Daemon/CWinStation.cpp Sun Nov 29 16:54:20 2009
+++ /trunk/Win32-Daemon/CWinStation.cpp Mon Jan 17 16:39:04 2011
@@ -425,8 +425,8 @@
}
}
}
- delete [] pSd;
- delete [] pNewSd;
+ delete [] (BYTE*)pSd;
+ delete [] (BYTE*)pNewSd;

return( bResult );
}

Reply all
Reply to author
Forward
0 new messages