Skip to content

Commit

Permalink
feat(core): fix build failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ermshiperete committed Oct 7, 2024
1 parent 069cd21 commit 052ae2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tests/unit/km_core_keyboard_api.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ TEST_F(KmCoreKeyboardApiTests, LoadFromBlobNull) {
// Setup
km::core::path kmxfile = "";

uint8_t data[] = {};
std::unique_ptr<uint8_t> data(new uint8_t[0]);

// Execute
auto status = km_core_keyboard_load_from_blob(kmxfile.stem().c_str(), data, 0, &this->keyboard);
auto status = km_core_keyboard_load_from_blob(kmxfile.stem().c_str(), data.get(), 0, &this->keyboard);

// Verify
EXPECT_EQ(status, KM_CORE_STATUS_INVALID_ARGUMENT);
Expand Down

0 comments on commit 052ae2e

Please sign in to comment.