diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-31 17:35:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-31 17:35:52 +0000 |
commit | fba12be553799e51a0c48bc9083edc21741888bd (patch) | |
tree | 8a4e6073788341844c439a6f333a71aa78fbe2b8 /plugins/CrashDumper/src/dumper.cpp | |
parent | d2b1030f624fc0b0688972388d68a85a47180476 (diff) |
custom os version detection replaced with the core one
git-svn-id: http://svn.miranda-ng.org/main/trunk@14766 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/dumper.cpp')
-rw-r--r-- | plugins/CrashDumper/src/dumper.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index 80e6b474fc..1978a04e35 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -124,9 +124,9 @@ void GetLinkedModulesInfo(TCHAR *moduleName, CMString &buffer) IMAGE_DIRECTORY_ENTRY_IMPORT, &tableSize);
if (importData) {
while (importData->Name) {
- char* moduleName = (char*)ImageRvaToVa(nthdrs, dllAddr, importData->Name, NULL);
- if (!SearchPathA(NULL, moduleName, NULL, NULL, 0, NULL))
- buffer.AppendFormat(format, moduleName);
+ char *szImportModule = (char*)ImageRvaToVa(nthdrs, dllAddr, importData->Name, NULL);
+ if (!SearchPathA(NULL, szImportModule, NULL, NULL, 0, NULL))
+ buffer.AppendFormat(format, szImportModule);
importData++; //go to next record
}
@@ -447,7 +447,8 @@ void PrintVersionInfo(CMString& buffer, unsigned flags) GetFreeMemoryString(buffer);
buffer.Append(TEXT("\r\n"));
- GetOSDisplayString(buffer);
+ TCHAR tszOsVer[200];
+ GetOSDisplayString(tszOsVer, _countof(tszOsVer));
buffer.Append(TEXT("\r\n"));
GetInternetExplorerVersion(buffer);
|