chrome_elf.dll.bak -> chrome_elf_bak.dll

This commit is contained in:
mrpond 2021-10-29 23:06:36 +07:00
parent 8db7392874
commit e1289226a3
2 changed files with 3 additions and 3 deletions

View file

@ -134,8 +134,8 @@ Downloading Latest Spotify full setup, please wait...
Stop-Process -Name SpotifyFullSetup >$null 2>&1
}
if (!(test-path $SpotifyDirectory/chrome_elf.dll.bak)){
move $SpotifyDirectory\chrome_elf.dll $SpotifyDirectory\chrome_elf.dll.bak >$null 2>&1
if (!(test-path $SpotifyDirectory/chrome_elf_bak.dll)){
move $SpotifyDirectory\chrome_elf.dll $SpotifyDirectory\chrome_elf_bak.dll >$null 2>&1
}
Write-Host 'Patching Spotify...'

View file

@ -12,7 +12,7 @@ void __stdcall LoadAPI (LPVOID* destination, LPCSTR apiName)
//wchar_t windows[MAX_PATH];
//GetSystemDirectoryW(windows, MAX_PATH);
//wsprintf(path, L"%s\\netutils.dll", windows);
wsprintf (path, ".\\chrome_elf.dll.bak");
wsprintf (path, ".\\chrome_elf_bak.dll");
HMODULE hModule = GetModuleHandle (path);
if (!hModule && !(hModule = LoadLibrary (path)))
return;