Index: /trunk/src/VBox/Runtime/common/crypto/store-inmem.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/crypto/store-inmem.cpp	(revision 53032)
+++ /trunk/src/VBox/Runtime/common/crypto/store-inmem.cpp	(revision 53033)
@@ -32,4 +32,5 @@
 #include <iprt/crypto/store.h>
 
+#include <iprt/asm.h>
 #include <iprt/err.h>
 #include <iprt/mem.h>
@@ -254,6 +255,7 @@
     {
         pSearch->auOpaque[1] = i + 1;
-        pThis->papCerts[i]->Core.cRefs++;
-        return &pThis->papCerts[i]->Core.Public;
+        PRTCRCERTCTXINT pCertCtx = &pThis->papCerts[i]->Core;
+        ASMAtomicIncU32(&pCertCtx->cRefs);
+        return &pCertCtx->Public;
     }
     return NULL;
