diff --git a/include/vmr.h b/include/vmr.h index bdcbd2e..a31622b 100644 --- a/include/vmr.h +++ b/include/vmr.h @@ -20,7 +20,7 @@ long version(T_VBVMR_INTERFACE *iVMR, long *version); bool is_pdirty(T_VBVMR_INTERFACE *iVMR); long get_parameter_float(T_VBVMR_INTERFACE *iVMR, char *param, float *f); -long get_parameter_string(T_VBVMR_INTERFACE *iVMR, char *param, char *s); +long get_parameter_string(T_VBVMR_INTERFACE *iVMR, char *param, unsigned short *s); long set_parameter_float(T_VBVMR_INTERFACE *iVMR, char *param, float val); long set_parameter_string(T_VBVMR_INTERFACE *iVMR, char *param, char *s); long set_parameters(T_VBVMR_INTERFACE *iVMR, char *command); diff --git a/src/vmr.c b/src/vmr.c index c033a72..d68f6ca 100644 --- a/src/vmr.c +++ b/src/vmr.c @@ -96,10 +96,10 @@ long get_parameter_float(T_VBVMR_INTERFACE *vmr, char *param, float *f) return vmr->VBVMR_GetParameterFloat(param, f); } -long get_parameter_string(T_VBVMR_INTERFACE *vmr, char *param, char *s) +long get_parameter_string(T_VBVMR_INTERFACE *vmr, char *param, unsigned short *s) { - log_trace("VBVMR_GetParameterStringA(%s, *s)", param, s); - return vmr->VBVMR_GetParameterStringA(param, s); + log_trace("VBVMR_GetParameterStringW(%s, *s)", param, s); + return vmr->VBVMR_GetParameterStringW(param, s); } long set_parameter_float(T_VBVMR_INTERFACE *vmr, char *param, float val) diff --git a/src/vmrcli.c b/src/vmrcli.c index 51ded57..b750e77 100644 --- a/src/vmrcli.c +++ b/src/vmrcli.c @@ -21,7 +21,7 @@ struct result union val { float f; - char s[MAX_LINE]; + wchar_t s[MAX_LINE]; } val; }; @@ -243,7 +243,7 @@ void parse_command(T_VBVMR_INTERFACE *vmr, char *command) printf("%.1f\n", res.val.f); break; case STRING_T: - puts(res.val.s); + printf("%ls\n", res.val.s); break; default: break;