![]() |
Bug fixes for EnigmaHardwareID source code
Posts
https://forum.exetools.com/showthread.php?t=20765 Error in retrieving hardware serial number in Windows 7 virtual machine.Error in function void GetHDDString(). My modification method: void RemoveParentheses(char* str) { char* dest = str; for (char* src = str; *src != '\0'; ++src) { if (*src != '(' && *src != ')') { *dest = *src; ++dest; } } *dest = '\0'; } -------------------------------------------------------------------------- ----------------------Keep the original code logic unchanged------------ ----------------------add code----------------------------------------- StringLen2 = strlen(bytes_values); for (i = 0; i < StringLen2; i += 2) // reverse chars { char firstChar = bytes_values[i]; char SecondChar = bytes_values[i + 1]; if (SecondChar != 0) { bytes_values[i + 1] = firstChar; bytes_values[i] = SecondChar; } } strcat_s(HDDStr, bytes_values); //add code RemoveParentheses(HDDStr); } else strcat_s(HDDStr, SecondString); //add code RemoveParentheses(HDDStr); -------------------------------------------------------------------------- ----------------------Keep the original code logic unchanged------------ |
This fix also works for Windows 8 in virtual machine (not need for 8.1)
|
Quote:
Quote:
|
@Mr.Leng: Many thanks for bug report.
let me know if problems was solved in uploaded. https://workupload.com/file/ydhLR2XhpHQ https://workupload.com/file/JdqjhJtqTkK |
Not work for Windows 7 SP1 in virtual machine (64-bit).
|
| All times are GMT +8. The time now is 14:28. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX