OSDN Git Service

キーダウン処理の修正
[nlite/nlite.git] / nlite_stub / nlite_stub.cpp
index a180120..60861f0 100644 (file)
@@ -194,7 +194,7 @@ unsigned int WINAPI commentthread(VOID *usadata){
        DWORD rslt;
        srand((unsigned int)time(NULL));
 
-       for(int indexfirst = 0; indexfirst < 1000;indexfirst++){
+       for(int indexfirst = 0; indexfirst < STARTRECEVECOUNT;indexfirst++){
                liveChat.chatBuf = commentcount % 2 == 0 ? TEXT("http://live.nicovideo.jp/watch/lv79715214?alert=1 2545 http://live.nicovideo.jp/watch/lv79715214?alert=1") : TEXT("test");
                _stprintf((LPTSTR)liveChat.user_id,user_id_format,rand() % 15);
                commentcount++;
@@ -206,10 +206,10 @@ unsigned int WINAPI commentthread(VOID *usadata){
        
        _beginthread(commentthread_inteanal,0,self);
        HANDLE eventarray[] = {self->endEvent,self->receveEvent};
-       for(int index = 0,index2; index < 65536;index++){
+       for(int index = 0,index2; index < RECEVECOUNT;index++){
 
 
-               for(index2 = 0;index2 < 3;index2++){
+               for(index2 = 0;index2 < ONERECEVECHATCOUNT;index2++){
 
                        liveChat.chatBuf = commentcount % 2 == 0 ? TEXT("http://live.nicovideo.jp/watch/lv79715214?alert=1 254 http://live.nicovideo.jp/") : TEXT("test");
                        _stprintf((LPTSTR)liveChat.user_id,user_id_format,rand() % 15);