Skip to content

Follow up of PR 12250: Use FILETIME from winKernel rather than define it multiple times.#12312

Merged
feerrenrut merged 5 commits intonvaccess:masterfrom
lukaszgo1:UseFILETIMEFromWinKernel
Apr 21, 2021
Merged

Follow up of PR 12250: Use FILETIME from winKernel rather than define it multiple times.#12312
feerrenrut merged 5 commits intonvaccess:masterfrom
lukaszgo1:UseFILETIMEFromWinKernel

Conversation

@lukaszgo1
Copy link
Copy Markdown
Contributor

Link to issue number:

None, follow up from PR #12250

Summary of the issue:

PR #12250 added definition of FILETIME structure from Windows.h to the winKernel module. This structure was already used throout NVDA's source code but it was defined in every file in which it was used. It makes sense to define it just once in winKernel and use from there.

Description of how this pull request fixes the issue:

For both objidl and _sapi4 the definition for FILETIME has been removed and every usage has been replaced with the definition from winKernel.
To comply with the style enforced by Linter it was necessary to fix star imports in _sapi4 which also necessitated fixing them in the main SAPI4 driver since it imported everything from the private driver and therefore stopped working after linting,.

Testing strategy:

Ensured that SAPI4 still works.
with git grep ensured that no usages of FILETIME were missed.

Known issues with pull request:

None known,

Change log entries:

I don't think this deserves change log entry.

Code Review Checklist:

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual tests.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.

- Do not rely on star imports.
It has been necessary to do it for sapi4 since it star imported everything from the internal module and therefore stopped working after internal module has been linted.
- Standardize copyright header.
- Do not rely on star imports from ctypes
@lukaszgo1 lukaszgo1 marked this pull request as ready for review April 20, 2021 13:47
@lukaszgo1 lukaszgo1 requested a review from a team as a code owner April 20, 2021 13:47
@feerrenrut feerrenrut merged commit dd950eb into nvaccess:master Apr 21, 2021
@nvaccessAuto nvaccessAuto added this to the 2021.1 milestone Apr 21, 2021
@lukaszgo1 lukaszgo1 deleted the UseFILETIMEFromWinKernel branch April 21, 2021 09:31
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.

3 participants