From ec404ce720840ac68910bb7a0d08385b20e7ee28 Mon Sep 17 00:00:00 2001 From: Hell Date: Tue, 29 May 2018 22:44:46 +0800 Subject: [PATCH] Fix Bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 函数使用不当导致控制码最大只能为 0x7fffffff --- .../DriverToolFrame.cpp" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/\351\251\261\345\212\250\345\267\245\345\205\267/DriverToolFrame.cpp" "b/\351\251\261\345\212\250\345\267\245\345\205\267/DriverToolFrame.cpp" index dfb5fad..ba00e77 100644 --- "a/\351\251\261\345\212\250\345\267\245\345\205\267/DriverToolFrame.cpp" +++ "b/\351\251\261\345\212\250\345\267\245\345\205\267/DriverToolFrame.cpp" @@ -755,8 +755,7 @@ void CDriverToolFrame::OnIoctlCodeChange(wxCommandEvent & event) break; } - TCHAR *p = nullptr; - ioctlInfo.ulData = _tcstol(strCode.c_str(), &p, 16); + ioctlInfo.ulData = _tcstoul(strCode.c_str(), nullptr, 16); } while (0); UpdateIoctlInfo(ioctlInfo);