summaryrefslogtreecommitdiffstats
path: root/scilab/modules/sound
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2009-11-27 12:07:26 +0100
committerAllan CORNET <allan.cornet@scilab.org>2009-11-27 12:07:26 +0100
commit1e8dddbc437efb98188608262b60a991bbf5645a (patch)
treea11cbdc015070239fe869954aa3cbc0e485b9c04 /scilab/modules/sound
parent42a82a3e15f462c97b782a728dd271beb2cadc2d (diff)
downloadscilab-1e8dddbc437efb98188608262b60a991bbf5645a.zip
scilab-1e8dddbc437efb98188608262b60a991bbf5645a.tar.gz
bug 5506
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