Skip to content

Commit

Permalink
Fixed quirks enabling per controller
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Dec 13, 2020
1 parent 0a15b7b commit 026aa5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
NVMeFix Changelog
=================
#### v1.0.5
- Fixed quirks enabling per controller

#### v1.0.4
- Added MacKernelSDK with Xcode 12 compatibility

Expand Down
2 changes: 1 addition & 1 deletion NVMeFix.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
2FF3E70623AE1DA100D8CDEB /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1200;
LastUpgradeCheck = 1220;
ORGANIZATIONNAME = acidanthera;
TargetAttributes = {
2FF3E70E23AE1DA100D8CDEB = {
Expand Down
2 changes: 1 addition & 1 deletion NVMeFix/NVMeFixPlugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class NVMeFixPlugin {
static bool terminatedNotificationHandler(void*, void*, IOService*, IONotifier*);
bool solveSymbols(KernelPatcher& kp);

atomic_bool solvedSymbols;
atomic_bool solvedSymbols = false;

IONotifier* matchingNotifier {nullptr}, * terminationNotifier {nullptr};

Expand Down
2 changes: 1 addition & 1 deletion NVMeFix/nvme_quirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ nvme_quirks quirksForController(uint16_t vid, const char* mn, const char* fr) {
unsigned ret {NVME_QUIRK_NONE};

for (const auto& entry : core_quirks) {
auto match {false};
auto match {true};
match &= !entry.vid || entry.vid == vid;
match &= !entry.mn || !strcmp(entry.mn, mn);
match &= !entry.fr || !strcmp(entry.fr, fr);
Expand Down

0 comments on commit 026aa5b

Please sign in to comment.