Skip to content

Commit

Permalink
Fix compatibility with macOS 10.14 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Jun 18, 2023
1 parent 8d24def commit 2e85197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
EmeraldSDHC Changelog
============================

#### v0.1.1
- Fixed compatibility with macOS 10.14 and older

#### v0.1.0
- Initial developer preview release
3 changes: 2 additions & 1 deletion EmeraldSDHC/EmeraldSDHCBlockStorageDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ bool EmeraldSDHCBlockStorageDevice::start(IOService *provider) {
break;
}

_initialCommands = (EmeraldSDHCCommand**) IOMallocZero(sizeof (*_initialCommands) * kSDAInitialCommandPoolSize);
_initialCommands = (EmeraldSDHCCommand**) IOMalloc(sizeof (*_initialCommands) * kSDAInitialCommandPoolSize);
if (_initialCommands == nullptr) {
EMSYSLOG("Failed to initialize initial command array");
break;
}
memset(_initialCommands, 0, sizeof (*_initialCommands) * kSDAInitialCommandPoolSize);

poolCommandSuccess = true;
for (int i = 0; i < kSDAInitialCommandPoolSize; i++) {
Expand Down

0 comments on commit 2e85197

Please sign in to comment.