Changeset 70455 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 3, 2018 6:49:14 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/RTUuidCreate-win.cpp
r69111 r70455 35 35 #include <iprt/assert.h> 36 36 #include <iprt/err.h> 37 #include <iprt/rand.h> 37 38 38 39 … … 47 48 return VINF_SUCCESS; 48 49 49 /* error exit */ 50 return RTErrConvertFromWin32(rc); 50 /* Seen on NT 3.1: */ 51 AssertMsg(rc == RPC_S_UUID_NO_ADDRESS, ("UuidCreate -> %u (%#x)\n", rc, rc)); 52 53 /* Use generic implementation as fallback (copy of RTUuidCreate-generic.cpp). */ 54 RTRandBytes(pUuid, sizeof(*pUuid)); 55 pUuid->Gen.u8ClockSeqHiAndReserved = (pUuid->Gen.u8ClockSeqHiAndReserved & 0x3f) | 0x80; 56 pUuid->Gen.u16TimeHiAndVersion = (pUuid->Gen.u16TimeHiAndVersion & 0x0fff) | 0x4000; 57 return VINF_SUCCESS; 51 58 } 52 59
Note:
See TracChangeset
for help on using the changeset viewer.