Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
函数使用不当导致控制码最大只能为
0x7fffffff
  • Loading branch information
dybb8999 committed May 29, 2018
1 parent d8db96e commit ec404ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 驱动工具/DriverToolFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec404ce

Please # to comment.