@@ -49,7 +49,7 @@ static bool wow64_write_memory(uint64_t nwvm, HANDLE hProcess, uint64_t lpBaseAd
4949 return true ;
5050}
5151
52- static bool injectdll_x64 (HANDLE process_handle, HANDLE thread_handle, const std::wstring& dll, const bee::zstring_view & entry) {
52+ static bool injectdll_x64 (HANDLE process_handle, HANDLE thread_handle, const std::wstring& dll, const std::string_view & entry) {
5353 static unsigned char sc[] = {
5454 0x9C , // pushfq
5555 0x0F , 0xA8 , // push gs
@@ -195,7 +195,7 @@ static bool injectdll_x64(HANDLE process_handle, HANDLE thread_handle, const std
195195 return true ;
196196}
197197
198- static bool injectdll_x86 (HANDLE process_handle, HANDLE thread_handle, const std::wstring& dll, const bee::zstring_view & entry) {
198+ static bool injectdll_x86 (HANDLE process_handle, HANDLE thread_handle, const std::wstring& dll, const std::string_view & entry) {
199199 static unsigned char sc[] = {
200200 0x68 , 0x00 , 0x00 , 0x00 , 0x00 , // push eip
201201 0x9C , // pushfd
@@ -266,7 +266,7 @@ static bool injectdll_x86(HANDLE process_handle, HANDLE thread_handle, const std
266266 return true ;
267267}
268268
269- bool injectdll (HANDLE process_handle, HANDLE thread_handle, const std::wstring& x86dll, const std::wstring& x64dll, const bee::zstring_view & entry) {
269+ bool injectdll (HANDLE process_handle, HANDLE thread_handle, const std::wstring& x86dll, const std::wstring& x64dll, const std::string_view & entry) {
270270 if (is_process64 (process_handle)) {
271271 return !x64dll.empty () && injectdll_x64 (process_handle, thread_handle, x64dll, entry);
272272 } else {
@@ -341,7 +341,7 @@ static bool openprocess(DWORD pid, DWORD process_access, DWORD thread_access, PR
341341 return true ;
342342}
343343
344- bool injectdll (DWORD pid, const std::wstring& x86dll, const std::wstring& x64dll, const bee::zstring_view & entry) {
344+ bool injectdll (DWORD pid, const std::wstring& x86dll, const std::wstring& x64dll, const std::string_view & entry) {
345345 PROCESS_INFORMATION pi = { 0 };
346346 if (!openprocess (pid, PROCESS_ALL_ACCESS, THREAD_GET_CONTEXT | THREAD_SET_CONTEXT | THREAD_SUSPEND_RESUME, pi)) {
347347 return false ;
0 commit comments