feat(core): fix build failure on Windows

This commit is contained in:
Eberhard Beilharz 2024-10-07 18:05:00 +02:00
parent 069cd21ecd
commit 052ae2ec35
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -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);