Skip to content

Commit

Permalink
Fix 1.27a compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
w3lh committed Dec 21, 2016
1 parent f046d04 commit 220245e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions exe/w3l.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ DWORD GetProcessBaseAddress(HANDLE hThread, HANDLE hProcess);
#define GAME_DLL_UNK (LPCVOID)0x4534d0

/* offset in war3.exe from base address that specifies the Game.dll to load */
#define BASE_GAME_DLL_127B (LPCVOID)0x5CA24
#define BASE_GAME_DLL_127B (DWORD)0x5CA24
#define BASE_GAME_DLL_127 (DWORD)0x5CA20
#define BASE_GAME_DLL_125 (DWORD)0x56B9C
#define BASE_GAME_DLL_122 (DWORD)0x56B64
Expand Down Expand Up @@ -119,7 +119,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
debug("base: %x\r\n", baseAddr);

// 1.27a+
for (i = 0; i<1; i++) {
for (i = 0; i < 2; i++) {
if (baseAddr == 0xFFFFFFFF) {
debug("[w3l] Trying offset 0x%08X... ", game27_dll_offsets[i]);
rval = InjectDll(processinfo, game27_dll_offsets[i], &HELPER27_DLL_NAME);
Expand Down
8 changes: 4 additions & 4 deletions exe/w3l.rc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
//

1 VERSIONINFO
FILEVERSION 1,4,2,0
PRODUCTVERSION 1,4,2,0
FILEVERSION 1,4,2,1
PRODUCTVERSION 1,4,2,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -54,12 +54,12 @@ BEGIN
VALUE "Comments", "Latest versions of this loader and other tools @ http://keres.myftp.org"
VALUE "CompanyName", "w3l"
VALUE "FileDescription", "Warcraft 3 1.22a-1.27a+ loader for PvPGN"
VALUE "FileVersion", "1.4.2.0"
VALUE "FileVersion", "1.4.2.1"
VALUE "InternalName", "w3l"
VALUE "LegalCopyright", "(c) 2008 Keres / Rupan / phatdeeva"
VALUE "OriginalFilename", "w3l.exe"
VALUE "ProductName", "w3l"
VALUE "ProductVersion", "1.4.2.0"
VALUE "ProductVersion", "1.4.2.1"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 220245e

Please sign in to comment.