From 4a773e9a66159af8172ff7b63ebf5c792341e57d Mon Sep 17 00:00:00 2001 From: N2614 Date: Mon, 14 Feb 2011 05:09:59 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=83=87?= =?UTF-8?q?=E3=82=B8=E3=83=83=E3=83=88=E3=81=8C10=E3=81=AB=E3=81=AA?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E3=81=8D=E3=81=AF0=E3=82=92=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@50 385bec56-5757-e545-9c3a-d8741f4650f1 --- trunk/ConsoleDataMigration/common/HardwareInfo.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'; }