Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
修复注册表修改不正确的Bug
  • Loading branch information
dybb8999 committed Jun 8, 2018
1 parent 091caa8 commit 06bd674
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 驱动工具/DriverToolFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void CDriverToolFrame::OnStartChange(wxCommandEvent & event)

wxString strFileName(m_pEdtDriverPath->GetLabelText().c_str() + pos + 1);

wcscpy_s(pwszFullPath, 32767, L"\\SystemRoot\\System\\Drivers\\");
wcscpy_s(pwszFullPath, 32767, L"\\SystemRoot\\System32\\Drivers\\");
wcscat_s(pwszFullPath, 32767, strFileName.c_str());

ulRet = RegSetValueEx(hMainKey, TEXT("ImagePath"), 0, REG_EXPAND_SZ, (const PBYTE)pwszFullPath, (wcslen(pwszFullPath) + 1)*sizeof(wchar_t));
Expand Down
Binary file modified 驱动工具/驱动工具.rc
Binary file not shown.

0 comments on commit 06bd674

Please # to comment.