summaryrefslogtreecommitdiff
path: root/sql/winservice.c
diff options
context:
space:
mode:
Diffstat (limited to 'sql/winservice.c')
-rw-r--r--sql/winservice.c2
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);