Closed fiantyogalihp closed 1 year ago
Hi, Thank you for the report.
This bug is new to me and I could not reproduce it on my Windows machine. However, I have tried to harden the code responsible for the bit-architecture report in this commit. Could you please check, if it is working now?
Thanks very much, now it's working at all 👍
My code is same to your example.cpp, and my result code:
Oh ya... you might got typo in your example.cpp on line 103 at Main Board serial number :)
Thanks for sharing your result and happy that I could fix the bug.
You might want to contribute your implementations of kernel and version to this library since they are empty for windows at the moment.
My code: `hwinfo::OS os; std::cout << "----------------------------------- OS ------------------------------------" << std::endl;
std::cout << std::left << std::setw(20) << "Operating System:";
std::cout << os.fullName() << std::endl;
std::cout << std::left << std::setw(20) << "short name:";
std::cout << os.name() << std::endl;
std::cout << std::left << std::setw(20) << "version:";
std::cout << os.version() << std::endl;
std::cout << std::left << std::setw(20) << "kernel:";
std::cout << os.kernel() << std::endl;
std::cout << std::left << std::setw(20) << "architecture:";
std::cout << (os.is32bit() ? "32 bit" : "64 bit") << std::endl;
std::cout << std::left << std::setw(20) << "endianess:";
std::cout << (os.isLittleEndian() ? "little endian" : "big endian") << std::endl;`
My code result
My windows System Information: