diff options
author | wtc%netscape.com <devnull@localhost> | 2002-10-24 04:10:25 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-10-24 04:10:25 +0000 |
commit | 50aed2cdbaa62e2c06fbe9750af5c1a20af44302 (patch) | |
tree | b8c1333548dc9fa27924f70033914c24dc1f295e | |
parent | 5a26cdfda0e0649bd4a141b3345acab8ea6e1c57 (diff) | |
download | nspr-hg-50aed2cdbaa62e2c06fbe9750af5c1a20af44302.tar.gz |
Bug 115865: our code only uses the lower 32 bits of the result of
QueryPerformanceFrequency, so assert that the higher 32 bits are all zeros.
-rw-r--r-- | pr/src/md/windows/ntinrval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pr/src/md/windows/ntinrval.c b/pr/src/md/windows/ntinrval.c index d6a3fe6f..0d572e09 100644 --- a/pr/src/md/windows/ntinrval.c +++ b/pr/src/md/windows/ntinrval.c @@ -55,6 +55,7 @@ _PR_MD_INTERVAL_INIT() LARGE_INTEGER count; if (QueryPerformanceFrequency(&count)) { + PR_ASSERT(count.HighPart == 0); while(count.LowPart > PR_INTERVAL_MAX) { count.LowPart >>= 1; _nt_bitShift++; |