Additional fix for issue 2.

This commit is contained in:
Jason Hood 2010-11-13 15:01:36 +10:00
parent 212adb101b
commit 3adef8e873

View File

@ -59,7 +59,7 @@ void InjectDLL32( LPPROCESS_INFORMATION ppi, LPCWSTR dll )
if (Wow64GetThreadContext == 0) if (Wow64GetThreadContext == 0)
return; return;
STARTUPINFO si; STARTUPINFOW si;
PROCESS_INFORMATION pi; PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) ); ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si); si.cb = sizeof(si);
@ -67,8 +67,8 @@ void InjectDLL32( LPPROCESS_INFORMATION ppi, LPCWSTR dll )
CopyMemory( code, dll, len - 7*sizeof(WCHAR) ); CopyMemory( code, dll, len - 7*sizeof(WCHAR) );
// ...ANSI-LLA.exe\0 // ...ANSI-LLA.exe\0
CopyMemory( code + len - 7*sizeof(WCHAR), L"-LLA.exe", 9*sizeof(WCHAR) ); CopyMemory( code + len - 7*sizeof(WCHAR), L"-LLA.exe", 9*sizeof(WCHAR) );
if (!CreateProcess( (char*)code, NULL, NULL, NULL, FALSE, 0, NULL, NULL, if (!CreateProcessW( (LPCWSTR)code, NULL, NULL, NULL, FALSE, 0, NULL, NULL,
&si, &pi )) &si, &pi ))
return; return;
WaitForSingleObject( pi.hProcess, INFINITE ); WaitForSingleObject( pi.hProcess, INFINITE );
GetExitCodeProcess( pi.hProcess, &LLW ); GetExitCodeProcess( pi.hProcess, &LLW );