diff --git a/src/spice2x/acio2emu/handle.cpp b/src/spice2x/acio2emu/handle.cpp index 2e6a86e..155ac73 100644 --- a/src/spice2x/acio2emu/handle.cpp +++ b/src/spice2x/acio2emu/handle.cpp @@ -31,7 +31,7 @@ namespace acio2emu { } }; - IOBHandle::IOBHandle(std::wstring device) : device_(device) { + IOBHandle::IOBHandle(LPCWSTR device) : device_(device) { nodes_[0] = std::make_unique(this); } diff --git a/src/spice2x/acio2emu/handle.h b/src/spice2x/acio2emu/handle.h index 5939d54..d24bb22 100644 --- a/src/spice2x/acio2emu/handle.h +++ b/src/spice2x/acio2emu/handle.h @@ -26,7 +26,7 @@ namespace acio2emu { void forward_packet_(const Packet &packet); public: - IOBHandle(std::wstring device); + IOBHandle(LPCWSTR device); bool register_node(std::unique_ptr node); int number_of_nodes() const;