forked from mirrors/0ad
VS2005 compatibility fixes and warning adjustments:
Updated DLLs. Added DirectX headers/libraries, since they're not in the platform SDK. Fixed invalid STL iterator usage. Disabled STL in stack trace, since it breaks. Added comments for some reported warnings. Corrected some apparent off-by-one errors. Defined strlen_s to strnlen. Probably broke pre-beta2 versions of VC2005. This was SVN commit r2454.
This commit is contained in:
@@ -90,8 +90,11 @@ private:
|
||||
void grow()
|
||||
{
|
||||
allocated += bufferinc;
|
||||
buffer = (char*)realloc(buffer, allocated);
|
||||
debug_assert(buffer);
|
||||
char* newbuffer = (char*)realloc(buffer, allocated);
|
||||
if (newbuffer)
|
||||
buffer = newbuffer;
|
||||
else
|
||||
debug_warn("Xeromyces: realloc failed");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user