diff --git a/System/X509/Win32.hs b/System/X509/Win32.hs
--- a/System/X509/Win32.hs
+++ b/System/X509/Win32.hs
@@ -45,8 +45,8 @@
             return $ decodeSignedObject b
         process ty _ _ =
             return $ Left ("windows certificate store: not supported type: " ++ show ty)
-        pbCertEncodedPos = alignment (undefined :: Ptr (Ptr Bytes))
-        cbCertEncoded    = pbCertEncodedPos + sizeOf (undefined :: Ptr (Ptr Bytes))
+        pbCertEncodedPos = alignment (undefined :: Ptr (Ptr BYTE))
+        cbCertEncodedPos = pbCertEncodedPos + sizeOf (undefined :: Ptr (Ptr BYTE))
 
 getSystemCertificateStore :: IO CertificateStore
 getSystemCertificateStore = do
diff --git a/x509-system.cabal b/x509-system.cabal
--- a/x509-system.cabal
+++ b/x509-system.cabal
@@ -1,5 +1,5 @@
 Name:                x509-system
-Version:             1.4.3
+Version:             1.4.4
 Description:         System X.509 handling
 License:             BSD3
 License-file:        LICENSE
