Navigation Menu

Skip to content

Commit

Permalink
mariadb: fix crash bug in mrn_init() on Windows
Browse files Browse the repository at this point in the history
The symbol name mismatch about argument of GetProcAddress
 causes NULL pointer exception in this case.
  • Loading branch information
kenhys committed Jul 31, 2013
1 parent 1502fe6 commit 51a4532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cpp
Expand Up @@ -1779,15 +1779,15 @@ static int mrn_init(void *p)
#ifdef _WIN32
HMODULE current_module = GetModuleHandle(NULL);
mrn_binlog_filter =
#if MYSQL_VERSION_ID >= 50600 && !defined(MRN_MARIADB_P)
#if MYSQL_VERSION_ID >= 50600
*((Rpl_filter **) GetProcAddress(current_module,
"?binlog_filter@@3PEAVRpl_filter@@EA"));
#else
*((Rpl_filter **) GetProcAddress(current_module,
"?binlog_filter@@3PAVRpl_filter@@A"));
#endif
mrn_my_tz_UTC =
#if MYSQL_VERSION_ID >= 50600 && !defined(MRN_MARIADB_P)
#if MYSQL_VERSION_ID >= 50600
*((Time_zone **) GetProcAddress(current_module,
"?my_tz_UTC@@3PEAVTime_zone@@EA"));
#else
Expand Down

0 comments on commit 51a4532

Please sign in to comment.