Changeset 9743 in vbox
- Timestamp:
- Jun 16, 2008 10:53:02 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32099
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/uuid.h
r9738 r9743 69 69 * 70 70 * @returns 0 if eq, < 0 or > 0. 71 * @param pUuid1 First value to compare. 72 * @param pUuid2 Second value to compare. 71 * @param pUuid1 First value to compare. NULL is treated like if RTUuidIsNull() return true. 72 * @param pUuid2 Second value to compare. NULL is treated like if RTUuidIsNull() return true. 73 73 */ 74 74 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2); … … 78 78 * 79 79 * @returns 0 if eq, < 0 or > 0. 80 * @param pUuid1 First value to compare. 81 * @param pszString2 The 2nd UUID in string form. 80 * @param pUuid1 First value to compare. NULL is not allowed. 81 * @param pszString2 The 2nd UUID in string form. NULL of malformed string is not permitted. 82 82 */ 83 83 RTDECL(int) RTUuidCompareStr(PCRTUUID pUuid1, const char *pszString); -
trunk/src/VBox/Runtime/generic/uuid-generic.cpp
r9741 r9743 63 63 * Special cases. 64 64 */ 65 /** @todo This differs in the windows implementation... check out which behavior we really want. */66 65 if (pUuid1 == pUuid2) 67 66 return 0; … … 70 69 if (!pUuid2) 71 70 return RTUuidIsNull(pUuid1) ? 0 : 1; 72 AssertPtr (pUuid1);73 AssertPtr (pUuid2);71 AssertPtrReturn(pUuid1, -1); 72 AssertPtrReturn(pUuid2, 1); 74 73 75 74 /* -
trunk/src/VBox/Runtime/r3/win/uuid-win.cpp
r9742 r9743 63 63 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 64 64 { 65 /* check params */ 66 /** @todo this isn't working the same way as uuid-generic.cpp. */ 65 /* 66 * Special cases. 67 */ 68 if (pUuid1 == pUuid2) 69 return 0; 70 if (!pUuid1) 71 return RTUuidIsNull(pUuid2) ? 0 : -1; 72 if (!pUuid2) 73 return RTUuidIsNull(pUuid1) ? 0 : 1; 67 74 AssertPtrReturn(pUuid1, -1); 68 AssertPtrReturn(pUuid 1, 1);75 AssertPtrReturn(pUuid2, 1); 69 76 77 /* 78 * Hand the rest to the Windows API. 79 */ 70 80 RPC_STATUS status; 71 81 return UuidCompare((UUID *)pUuid1, (UUID *)pUuid2, &status);
Note:
See TracChangeset
for help on using the changeset viewer.