This is an archive of the discontinued LLVM Phabricator instance.

Subject: [PATCH] [Driver] fix windows SDK detect
ClosedPublic

Authored by comicfans44 on Jul 1 2016, 4:44 PM.

Details

Summary
  1. readFullStringValue returns bool, should not compared with ERROR_SUCCESS
  2. RegQueryValueExW string may contain null terminating char ,should be trimmed

these leads getSystemRegistryString return incorrect result, and following
getWindows10SDKVersion gives incorrect result for string append, prevents correct
SDK detected.

Diff Detail

Repository
rL LLVM

Event Timeline

comicfans44 updated this revision to Diff 62570.Jul 1 2016, 4:44 PM
comicfans44 retitled this revision from to Subject: [PATCH] [Driver] fix windows SDK detect.
comicfans44 updated this object.
comicfans44 added reviewers: zturner, majnemer.
comicfans44 added a subscriber: cfe-commits.
zturner accepted this revision.Jul 1 2016, 7:21 PM
zturner edited edge metadata.

Looks good, do you have commit access to commit this?

This revision is now accepted and ready to land.Jul 1 2016, 7:21 PM

I've not commited to cfe before, so I think I havn't commit access permission.

I've not commited to cfe before, so I think I havn't commit access permission.

If you've committed anywhere in LLVM, you should have commit access to cfe. Feel free to give it a try, as I won't be able to commit until Wednesday of next week at the earliest anyway due to the upcoming holiday.

neither did I commited to LLVM ... so I'll wait.

I've not commited to cfe before, so I think I havn't commit access permission.

If you've committed anywhere in LLVM, you should have commit access to cfe. Feel free to give it a try, as I won't be able to commit until Wednesday of next week at the earliest anyway due to the upcoming holiday.

ping ?

This revision was automatically updated to reflect the committed changes.