summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2008-11-11 22:34:31 +0000
committerStephen D. Huston <shuston@apache.org>2008-11-11 22:34:31 +0000
commitcf3f672892f91c802c5e7316081211ecdfa02bee (patch)
tree66ff991ee2404145f08c75c1eca729b283741ad2
parentc1576b4f2274eae9197bd418cf7d430ee630edf6 (diff)
downloadqpid-python-cf3f672892f91c802c5e7316081211ecdfa02bee.tar.gz
Correct returned value on successful parse
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@713201 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/sys/windows/uuid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/windows/uuid.cpp b/qpid/cpp/src/qpid/sys/windows/uuid.cpp
index 76233751ff..92f60e04b1 100644
--- a/qpid/cpp/src/qpid/sys/windows/uuid.cpp
+++ b/qpid/cpp/src/qpid/sys/windows/uuid.cpp
@@ -41,7 +41,7 @@ int uuid_is_null (const uuid_t uu) {
}
int uuid_parse (const char *in, uuid_t uu) {
- return UuidFromString ((unsigned char*)in, (UUID*)uu) == RPC_S_OK;
+ return UuidFromString ((unsigned char*)in, (UUID*)uu) == RPC_S_OK ? 0 : -1;
}
void uuid_unparse (const uuid_t uu, char *out) {