I don't even know why another variable is used. If QueryPerformanceFrequency succeeds, sm_freq is already set; else it gets overwritten in the else clause.


Ah never mind. Cause it's now const and not an lvalue.
The following is the corrected code. Tested it, works fine again:


interval_t freq;
if (QueryPerformanceFrequency(&freq))
{
        sm_freq =   freq;
        sm_fn   =   &_qpc;
}
else
{
        sm_freq =   1000;
        sm_fn   =   &_qtc;
}
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to