Skip to content

Commit 4e81b3e

Browse files
committed
Fixed a startup crash
1 parent 58e993d commit 4e81b3e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Client/loader/Utils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,10 @@ void UpdateMTAVersionApplicationSetting ( bool bQuiet )
12731273
HMODULE hModule = GetLibraryHandle ( strFilename, &dwLastError );
12741274
if ( hModule )
12751275
{
1276+
typedef void (*PFNINITNETREV) ( const char*, const char*, const char* );
1277+
PFNINITNETREV pfnInitNetRev = static_cast < PFNINITNETREV > ( static_cast < PVOID > ( GetProcAddress ( hModule, "InitNetRev" ) ) );
1278+
if ( pfnInitNetRev )
1279+
pfnInitNetRev ( GetProductRegistryPath(), GetProductCommonDataDir(), GetProductVersion() );
12761280
typedef unsigned short (*PFNGETNETREV) ( void );
12771281
PFNGETNETREV pfnGetNetRev = static_cast < PFNGETNETREV > ( static_cast < PVOID > ( GetProcAddress ( hModule, "GetNetRev" ) ) );
12781282
if ( pfnGetNetRev )

Client/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
#define _ASE_VERSION QUOTE_DEFINE(MTASA_VERSION_MAJOR) "." QUOTE_DEFINE(MTASA_VERSION_MINOR)
7777
#define _NETCODE_VERSION_BRANCH_ID 0x4 // Use 0x1 - 0xF to indicate an incompatible branch is being used (0x0 is reserved, 0x4 is trunk)
78-
#define _CLIENT_NET_MODULE_VERSION 0x0A0 // (0x000 - 0xfff) Lvl9 wizards only
78+
#define _CLIENT_NET_MODULE_VERSION 0x0A1 // (0x000 - 0xfff) Lvl9 wizards only
7979
#define _NETCODE_VERSION 0x1DA // (0x000 - 0xfff) Increment when net messages change (pre-release)
8080
#define MTA_DM_BITSTREAM_VERSION 0x067 // (0x000 - 0xfff) Increment when net messages change (post-release). (Changing will also require additional backward compatibility code).
8181

0 commit comments

Comments
 (0)