mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Clean up DisplaySystemVersion() to avoid hsStrcpy, and add Windows 8.1
to the known versions decoder.
This commit is contained in:
@ -300,18 +300,14 @@ bool plNetClientMgr::Log(const char* str) const
|
||||
//
|
||||
// Display OS version info for log
|
||||
//
|
||||
extern std::vector<plString> DisplaySystemVersion();
|
||||
|
||||
void plNetClientMgr::IDumpOSVersionInfo() const
|
||||
{
|
||||
DebugMsg("*** OS Info");
|
||||
char** versionStrs = DisplaySystemVersion();
|
||||
int i=0;
|
||||
while(versionStrs && versionStrs[i])
|
||||
{
|
||||
DebugMsg(versionStrs[i]);
|
||||
delete [] versionStrs[i];
|
||||
i++;
|
||||
}
|
||||
delete [] versionStrs;
|
||||
std::vector<plString> versionStrs = DisplaySystemVersion();
|
||||
for (auto version = versionStrs.begin(); version != versionStrs.end(); ++version)
|
||||
DebugMsg(version->c_str());
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user