[Swfed-svn] swfed-svn [57] replace 系 API の戻り値の true / false が逆なので修正 ( 成功 :true, 失敗 : false が正しい )

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 6日 (月) 17:29:57 JST


Revision: 57
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=57
Author:   yoya
Date:     2008-10-06 17:29:57 +0900 (Mon, 06 Oct 2008)

Log Message:
-----------
replace 系 API の戻り値の true/false が逆なので修正 (成功:true, 失敗:false が正しい)

Modified Paths:
--------------
    src/swfed.c


-------------- next part --------------
Modified: src/swfed.c
===================================================================
--- src/swfed.c	2008-10-03 08:47:52 UTC (rev 56)
+++ src/swfed.c	2008-10-06 08:29:57 UTC (rev 57)
@@ -529,7 +529,7 @@
                                          (unsigned long) data_len,
                                          (unsigned char *)alpha_data,
                                          (unsigned long) alpha_data_len);
-    if (result == 0) {
+    if (result) {
         RETURN_FALSE;
     }
     RETURN_TRUE;
@@ -581,7 +581,7 @@
     result = swf_object_replace_pngdata(swf, image_id,
                                         (unsigned char *)data,
                                         (unsigned long) data_len);
-    if (result == 0) {
+    if (result) {
         RETURN_FALSE;
     }
     RETURN_TRUE;
@@ -633,7 +633,7 @@
     result = swf_object_replace_melodata(swf, sound_id,
                                          (unsigned char *)data,
                                          (unsigned long) data_len);
-    if (result == 0) {
+    if (result) {
         RETURN_FALSE;
     }
     RETURN_TRUE;
@@ -680,7 +680,7 @@
     
     result = swf_object_replace_editstring(swf, var_name,  var_name_len,
                                            ini_text, ini_text_len);
-    if (result == 0) {
+    if (result) {
         RETURN_FALSE;
     }
     RETURN_TRUE;


Swfed-svn メーリングリストの案内
Zurück zum Archiv-Index