OSDN Git Service

Fix bugs of playing sound.
[ffftp/ffftp.git] / getput.c
index 937aa2f..1c287b6 100644 (file)
--- a/getput.c
+++ b/getput.c
@@ -3045,7 +3045,10 @@ static void DispUploadFinishMsg(TRANSPACKET *Pkt, int iRetCode)
 //                     if((Pkt->hWndTrans != NULL) && (TimeStart != 0))\r
 //                             SetTaskMsg(MSGJPN115, TimeStart, Pkt->ExistSize/TimeStart);\r
                        if((Pkt->hWndTrans != NULL) && (TimeStart[Pkt->ThreadCount] != 0))\r
-                               SetTaskMsg(MSGJPN115, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]);\r
+                               // "0 B/S"と表示されるバグを修正\r
+                               // 原因は%dにあたる部分に64ビット値が渡されているため\r
+//                             SetTaskMsg(MSGJPN115, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]);\r
+                               SetTaskMsg(MSGJPN115, (LONG)TimeStart[Pkt->ThreadCount], (LONG)(Pkt->ExistSize/TimeStart[Pkt->ThreadCount]));\r
                        else\r
                                SetTaskMsg(MSGJPN116);\r
                }\r