Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of KeQuerySystemTimePrecise #24

Merged
merged 3 commits into from Mar 24, 2020

Conversation

Nazardo
Copy link

@Nazardo Nazardo commented Mar 23, 2020

Init pointer to KeQuerySystemTimePrecise.
Replace dispatcher function with if branch with direct function pointer as an improvement.

Mauro Levra added 3 commits March 23, 2020 18:10
Global function pointer g_ptrQuerySystemTime is defined in Packet.c to
store a reference to the system time function available on the current
system:
  * KeQuerySystemTimePrecise on Windows 8 and later
  * KeQuerySystemTime (function) on Win7/Vista x86
  * KeQuerySystemTimeWrapper on Win7/Vista x64
The latter is a wrapper around KeQuerySystemTime (macro).

This update removes an if branch and removes an indirect function call.
@dmiller-nmap dmiller-nmap merged commit 63d3c5c into nmap:master Mar 24, 2020
@Nazardo Nazardo deleted the fix-query-system-time branch March 24, 2020 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants