Wireshark-commits: [Wireshark-commits] rev 38921: /trunk/ /trunk/: dumpcap.c

Date: Wed, 07 Sep 2011 18:25:55 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38921

User: wmeier
Date: 2011/09/07 11:25 AM

Log:
 Windows: GetTickCount() returns a DWORD (not a time_t);
 Fixes a problem on Windows wherein specifying a capture file
 time duration for autostop or file-switching would stop
 working after some period of time.
 
 The reason:
 GetTickCount returns DWORD (unsigned int) which
  wraps "every 49.7 days";
 
 and: The GetTickCount() return value was being stored in a time_t which is
  int64 on Windows;
 
 thus:
  The test for elapsed time (using signed integers) didn't work correctly after
  the time had wrapped.
 
 Fixes Bug #6280: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6280

Directory: /trunk/
  Changes    Path          Action
  +3 -3      dumpcap.c     Modified