diff --git a/trunk/ConsoleDataMigration/common/HardwareInfo.cpp b/trunk/ConsoleDataMigration/common/HardwareInfo.cpp index c8a8f41..abf3edd 100644 --- a/trunk/ConsoleDataMigration/common/HardwareInfo.cpp +++ b/trunk/ConsoleDataMigration/common/HardwareInfo.cpp @@ -53,7 +53,15 @@ void HardwareInfo::AddCheckDigit(char* serial) odd = !odd; } - serial[len] = 10 - (digit % 10) + '0'; + if(digit % 10 != 0) + { + serial[len] = 10 - (digit % 10) + '0'; + } + else + { + serial[len] = '0'; + } + serial[len + 1] = '\0'; }