OSDN Git Service

bugfix
[mimic/MiMicSDK.git] / lib / src / http / NyLPC_cHttpStream.c
index c49361d..e359921 100644 (file)
@@ -168,7 +168,10 @@ static NyLPC_TBool write_func(void* i_inst,const void* i_data,NyLPC_TInt32 i_len
                memcpy(inst->txb+inst->tx_len,src,free_size);\r
                inst->tx_len+=free_size;\r
                //書き込み\r
-               flush_func(i_inst);\r
+               if(!flush_func(i_inst)){\r
+                       //書込みエラー・・・\r
+                       return NyLPC_TBool_FALSE;\r
+               }\r
                //読み出し位置の調整\r
                l-=free_size;\r
                src+=free_size;\r