Commit 0729ad47 authored by David Cole's avatar David Cole

CPack: Fix dashboard errors (#11575)

Use same technique here with UuidToString as already found in
cmGlobalVisualStudio7Generator::CreateGUID to avoid using a type
that is not defined on older systems... (VS 7.0 and Borland)
parent 85baac15
...@@ -539,8 +539,8 @@ std::string cmCPackWIXGenerator::GenerateGUID() ...@@ -539,8 +539,8 @@ std::string cmCPackWIXGenerator::GenerateGUID()
UUID guid; UUID guid;
UuidCreate(&guid); UuidCreate(&guid);
RPC_CSTR tmp = 0; unsigned char *tmp = 0;
UuidToStringA(&guid, &tmp); UuidToString(&guid, &tmp);
std::string result(reinterpret_cast<char*>(tmp)); std::string result(reinterpret_cast<char*>(tmp));
RpcStringFree(&tmp); RpcStringFree(&tmp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment