@@ -246,15 +246,15 @@ void Apply_Patch(char *patchfile,ConfigFile &config,int skuIndex, bool show_dial
246246 HANDLE patchThread = CreateThread (NULL , 0 , ApplyPatchThread, (LPVOID)patchfile, 0 , &patchID);
247247
248248 int dotcnt = 9 ;
249- DWORD last_time = GetTickCount ();
249+ DWORD last_time = TIMEGETTIME ();
250250 BOOL forward = false ;
251251 char worktext[256 ];
252252 LoadStringA (NULL ,IDS_WORKING_TEXT,worktext,sizeof (worktext)-12 );
253253 int scnt = strlen (worktext)+1 ;
254254 strcat (worktext, " .........." );
255255 // Wait for the thread to finish
256256 while (rtpErrCode == -1 ) {
257- if (GetTickCount () - last_time > 100 ) {
257+ if (TIMEGETTIME () - last_time > 100 ) {
258258 if (forward) {
259259 worktext[scnt+dotcnt] = ' .' ;
260260 if (dotcnt == 9 ) forward = false ;
@@ -265,7 +265,7 @@ void Apply_Patch(char *patchfile,ConfigFile &config,int skuIndex, bool show_dial
265265 else dotcnt--;
266266 }
267267 SetWindowText (GetDlgItem (PatchDialog,IDC_WORKING_BOX),(char *)worktext);
268- last_time = GetTickCount ();
268+ last_time = TIMEGETTIME ();
269269 }
270270 while (PeekMessage (&msg,NULL ,0 ,0 , PM_REMOVE))
271271 {
0 commit comments