--- a/buffers.c
+++ b/buffers.c
@@ -79,7 +79,7 @@
         return (FALSE);
     }
 
-    if(S_OK != ULongMult(sizeof(REPORT_BUFFER), nBuffers, &reportBuffersSize))
+    if(__builtin_mul_overflow(sizeof(REPORT_BUFFER), nBuffers, &reportBuffersSize))
     {
         free(pNewDisplay);
         return (FALSE);
