diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-03 17:51:03 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-03 17:51:03 +0100 |
commit | 3cb88652ddc711954e9f18ad2799c57997c9fd1a (patch) | |
tree | abdc33b29c9f7ea35cf7bc462353ca9605c675cd /sql/winservice.c | |
parent | 57d477c7cf7f06d76840529b9852246b3405d25c (diff) | |
download | mariadb-git-3cb88652ddc711954e9f18ad2799c57997c9fd1a.tar.gz |
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.
Diffstat (limited to 'sql/winservice.c')
-rw-r--r-- | sql/winservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/winservice.c b/sql/winservice.c index 17d678e4f1a..0c238d4d33d 100644 --- a/sql/winservice.c +++ b/sql/winservice.c @@ -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); |