Fixed Debug build in Visual Studio
This commit is contained in:
parent
6dba0635f1
commit
50bdaba526
11 changed files with 44 additions and 51 deletions
|
@ -117,7 +117,7 @@ static HANDLE wrmsr_install_driver()
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
for (auto it = dir.end(); it != dir.begin(); --it) {
|
||||
for (auto it = dir.end() - 1; it != dir.begin(); --it) {
|
||||
if ((*it == L'\\') || (*it == L'/')) {
|
||||
++it;
|
||||
*it = L'\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue