summaryrefslogtreecommitdiffstats
path: root/scilab/modules/sound
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2009-11-27 12:10:36 +0100
committerAllan CORNET <allan.cornet@scilab.org>2009-11-27 12:10:36 +0100
commit8c73cb03c1d204dd173285e247b824180d5aa17a (patch)
tree72626cc5080cda86959d994374ac4d7afe6dcede /scilab/modules/sound
parentee3129c833aecbefbbdb6d7169c0cc5c925f55aa (diff)
parent5e477fa4cbc48cf9e9365d0b7f022b59aae68799 (diff)
downloadscilab-8c73cb03c1d204dd173285e247b824180d5aa17a.zip
scilab-8c73cb03c1d204dd173285e247b824180d5aa17a.tar.gz
Merge commit 'refs/remotes/origin/5.2'
Diffstat (limited to 'scilab/modules/sound')
-rw-r--r--scilab/modules/sound/sci_gateway/c/sci_PlaySound.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/scilab/modules/sound/sci_gateway/c/sci_PlaySound.c b/scilab/modules/sound/sci_gateway/c/sci_PlaySound.c
index e736171..315a88e 100644
--- a/scilab/modules/sound/sci_gateway/c/sci_PlaySound.c
+++ b/scilab/modules/sound/sci_gateway/c/sci_PlaySound.c
@@ -62,16 +62,16 @@ int sci_Playsound (char *fname,unsigned long fname_len)
62 return 0; 62 return 0;
63 } 63 }
64 64
65 sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne,&m1,&n1,&lenStVarOne,&pStVarOne); 65 if ( (m1 != n1) && (n1 != 1) )
66 if(sciErr.iErr)
67 { 66 {
68 printError(&sciErr, 0); 67 Scierror(999,_("%s: Wrong size for input argument #%d: A string expected.\n"),fname,1);
69 return 0; 68 return 0;
70 } 69 }
71 70
72 if ( (m1 != n1) && (n1 != 1) ) 71 sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne,&m1,&n1,&lenStVarOne,&pStVarOne);
72 if(sciErr.iErr)
73 { 73 {
74 Scierror(999,_("%s: Wrong size for input argument #%d: A string expected.\n"),fname,1); 74 printError(&sciErr, 0);
75 return 0; 75 return 0;
76 } 76 }
77 77