Skip to content

Commit d0e1374

Browse files
committed
fix windows compile
1 parent 84b7fe2 commit d0e1374

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
331331
setvbuf(stderr, nullptr, _IOLBF, 0);
332332
}
333333

334-
auto file = std::make_shared<spdlog::sinks::basic_file_sink_mt("oshot.log", true);
334+
auto file = std::make_shared<spdlog::sinks::basic_file_sink_mt>("oshot.log", true);
335335
#else
336336
int main(int argc, char* argv[])
337337
{

src/screen_capture.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ struct com_ptr
730730
}
731731

732732
T** operator&() { return &ptr; }
733-
T* operator-() const { return ptr; }
733+
T* operator->() const { return ptr; }
734734
operator T*() const { return ptr; }
735735
operator bool() const { return ptr != nullptr; }
736736

@@ -937,7 +937,7 @@ Result<capture_result_t> capture_full_screen_windows()
937937
}
938938

939939
// Copy to RGBA buffer
940-
const uint8_t* src = const uint8_t*(mapped.pData);
940+
const uint8_t* src = static_cast<const uint8_t*>(mapped.pData);
941941
const uint32_t width = desc.Width;
942942
const uint32_t height = desc.Height;
943943

0 commit comments

Comments
 (0)