Fix 64-bit version related to issue 2

This commit is contained in:
Jason Hood 2010-11-13 21:54:02 +10:00
parent b66d378192
commit cabaa57578

View File

@ -65,8 +65,8 @@ void InjectDLL32( LPPROCESS_INFORMATION ppi, LPCWSTR dll )
si.cb = sizeof(si); si.cb = sizeof(si);
// ...ANSI32.dll\0 // ...ANSI32.dll\0
CopyMemory( code, dll, len - 7*sizeof(WCHAR) ); CopyMemory( code, dll, len - 7*sizeof(WCHAR) );
// ...ANSI-LLA.exe\0 // ...ANSI-LLW.exe\0
CopyMemory( code + len - 7*sizeof(WCHAR), L"-LLA.exe", 9*sizeof(WCHAR) ); CopyMemory( code + len - 7*sizeof(WCHAR), L"-LLW.exe", 9*sizeof(WCHAR) );
if (!CreateProcessW( (LPCWSTR)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;