[Scummvm-cvs-logs] SF.net SVN: scummvm:[45443] scummvm/trunk/tools/create_msvc/create_msvc.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Oct 27 19:36:42 CET 2009
Revision: 45443
http://scummvm.svn.sourceforge.net/scummvm/?rev=45443&view=rev
Author: lordhoto
Date: 2009-10-27 18:36:42 +0000 (Tue, 27 Oct 2009)
Log Message:
-----------
Add another assert to check for return value of "new".
Modified Paths:
--------------
scummvm/trunk/tools/create_msvc/create_msvc.cpp
Modified: scummvm/trunk/tools/create_msvc/create_msvc.cpp
===================================================================
--- scummvm/trunk/tools/create_msvc/create_msvc.cpp 2009-10-27 18:36:06 UTC (rev 45442)
+++ scummvm/trunk/tools/create_msvc/create_msvc.cpp 2009-10-27 18:36:42 UTC (rev 45443)
@@ -1290,7 +1290,9 @@
continue;
}
- result->children.push_back(new FileNode(fileInformation.cFileName));
+ FileNode *child = new FileNode(fileInformation.cFileName);
+ assert(child);
+ result->children.push_back(child);
} while (FindNextFile(fileHandle, &fileInformation) == TRUE);
CloseHandle(fileHandle);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list