diff --git a/src/DlgModules.cpp b/src/DlgModules.cpp index 662ed65..3d46ad9 100644 --- a/src/DlgModules.cpp +++ b/src/DlgModules.cpp @@ -112,24 +112,24 @@ void ModulesDlg::RefreshList( ) // Module platform if (mod.second->type == blackbone::mt_mod32) - platfom = L"32 bit"; + platfom = (wchar_t*)L"32 bit"; else if (mod.second->type == blackbone::mt_mod64) - platfom = L"64 bit"; + platfom = (wchar_t*)L"64 bit"; else - platfom = L"Unknown"; + platfom = (wchar_t*)L"Unknown"; // Mapping type if (mod.second->manual == true) - detected = L"Manual map"; + detected = (wchar_t*)L"Manual map"; else if (modsLdr.count( mod.first )) - detected = L"Normal"; + detected = (wchar_t*)L"Normal"; else if (modsSec.count( mod.first )) - detected = L"Section only"; + detected = (wchar_t*)L"Section only"; else if (mod.second->name.find( L"Unknown_0x" ) == 0) - detected = L"PE header"; + detected = (wchar_t*)L"PE header"; else - detected = L"Unknown"; + detected = (wchar_t*)L"Unknown"; _modList.AddItem( mod.second->name, static_cast(mod.second->baseAddress), { address, platfom, detected } ); } -} \ No newline at end of file +} diff --git a/src/DlgSettings.cpp b/src/DlgSettings.cpp index 90be731..4b9abd0 100644 --- a/src/DlgSettings.cpp +++ b/src/DlgSettings.cpp @@ -136,7 +136,7 @@ DWORD DlgSettings::HandleDriver( uint32_t type ) Wow64DisableWow64FsRedirection( &oldVal ); // For some reason running BCDedit directly does not enable test signing from WOW64 process - if (CreateProcessW( bcdpath.c_str(), L"/C Bcdedit.exe -set TESTSIGNING ON", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi )) + if (CreateProcessW( bcdpath.c_str(), (LPWSTR)L"/C Bcdedit.exe -set TESTSIGNING ON", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi )) { Message::ShowWarning( _hwnd, L"You must reboot your computer for the changes to take effect" ); diff --git a/src/ProfileMgr.cpp b/src/ProfileMgr.cpp index 92884e2..aaa938f 100644 --- a/src/ProfileMgr.cpp +++ b/src/ProfileMgr.cpp @@ -57,7 +57,7 @@ bool ProfileMgr::Load( const std::wstring& path /*= L""*/ ) if(xml.has( L"XenosConfig.imagePath" )) { auto nodes = xml.all_nodes_named( L"XenosConfig.imagePath" ); - for (auto& node : nodes) + for (auto node : nodes) _config.images.emplace_back( node.value() ); } diff --git a/src/Routines.cpp b/src/Routines.cpp index bd4d827..2bd2bb6 100644 --- a/src/Routines.cpp +++ b/src/Routines.cpp @@ -342,9 +342,9 @@ void MainDlg::AddToModuleList( std::shared_ptr& img ) if (img->mType() == blackbone::mt_mod32) platfom = L"32 bit"; else if (img->mType() == blackbone::mt_mod64) - platfom = L"64 bit"; + platfom = (wchar_t*)L"64 bit"; else - platfom = L"Unknown"; + platfom = (wchar_t*)L"Unknown"; _images.emplace_back( img ); _modules.AddItem( blackbone::Utils::StripPath( img->path() ), 0, { platfom } );