test rep value explicitly

This commit is contained in:
onyx-and-iris 2024-06-25 17:22:46 +01:00
parent 45496452c5
commit 73b6a1d7b6

View File

@ -38,7 +38,7 @@ int main(int argc, char *argv[])
T_VBVMR_INTERFACE *vmr = &iVMR;
int rep = init_voicemeeter(vmr, kind);
if (rep)
if (rep != 0)
{
exit(EXIT_FAILURE);
}
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
}
rep = logout(vmr);
if (!rep)
if (rep == 0)
{
puts("Successfully logged out of Voicemeeter API");
return EXIT_SUCCESS;