MWL#55: correct mysqld.exe file path, to extract version from it.

Take into account that services registered by  MySQL do not have
 .exe extension  in service binary path.
This commit is contained in:
Vladislav Vaintroub 2011-02-03 17:51:03 +01:00
parent 57d477c7cf
commit 3cb88652dd

View file

@ -105,7 +105,7 @@ int get_mysql_service_properties(const wchar_t *bin_path,
goto end;
}
wcstombs(props->mysqld_exe, args[0], MAX_PATH);
wcstombs(props->mysqld_exe, mysqld_path, MAX_PATH);
wcstombs(props->inifile, args[1]+16, MAX_PATH);
normalize_path(props->inifile, MAX_PATH);