diff options
Diffstat (limited to 'src/uuid.cpp')
-rw-r--r-- | src/uuid.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/uuid.cpp b/src/uuid.cpp index 10db3bc..6abc41d 100644 --- a/src/uuid.cpp +++ b/src/uuid.cpp @@ -23,25 +23,28 @@ #if defined ZMQ_HAVE_WINDOWS -#include <rpcdce.h> - zmq::uuid_t::uuid_t () { RPC_STATUS ret = UuidCreate (&uuid); zmq_assert (ret == RPC_S_OK); ret = UuidToString (&uuid, &uuid_str); zmq_assert (ret == RPC_S_OK); + + /* + HRESULT hr = CoCreateGUID (&uuid); + zmq_assert (hr == S_OK); + int rc = StringFromGUID2 (uuid, uuid_str, 40); + zmq_assert (rc != 0); + */ } zmq::uuid_t::~uuid_t () { - RPC_STATUS ret = RpcStringFree(&uuid_str); - assert (ret == RPC_S_OK); } const char *zmq::uuid_t::to_string () { - return uuid_str; + return (char*) uuid_str; } #elif defined ZMQ_HAVE_FREEBSD |