Index: apitests/atl/CComHeapPtr.cpp =================================================================== --- apitests/atl/CComHeapPtr.cpp (revision 70788) +++ apitests/atl/CComHeapPtr.cpp (working copy) @@ -94,6 +94,11 @@ ok((PDWORD)heapPtr2 == NULL, "Expected heapPtr2 to be NULL, was: 0x%p\n", (PDWORD)heapPtr2); ok((PDWORD)heapPtrSteal2 != NULL, "Expected heapPtrSteal2 to not be NULL\n"); ok(*heapPtrSteal2 == 0x11111111, "Expected *heapPtrSteal2 to be 0x11111111, but was: 0x%lx\n", *heapPtrSteal2); + CComHeapPtr heapPtrSteal3 = heapPtrSteal2; + ok(g_OpenAllocations == 1, "Expected there to be 1 allocations, was: %ld\n", g_OpenAllocations); + ok((PDWORD)heapPtrSteal2 == NULL, "Expected heapPtrSteal2 to be NULL, was: 0x%p\n", (PDWORD)heapPtrSteal2); + ok((PDWORD)heapPtrSteal3 != NULL, "Expected heapPtrSteal3 to not be NULL\n"); + ok(*heapPtrSteal3 == 0x11111111, "Expected *heapPtrSteal3 to be 0x11111111, but was: 0x%lx\n", *heapPtrSteal3); } ok(g_OpenAllocations == 0, "Expected there to be 0 allocations, was: %ld\n", g_OpenAllocations);