Use VBVMR_GetParameterStringW instead of VBVMR_GetParameterStringA

update struct result definition

fixes bug with unknown parameters
This commit is contained in:
2024-06-27 23:26:46 +01:00
parent accab93fba
commit 3c46b3d9f3
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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;