Typo in Windows error code in x509_crt.c
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 1fa779c..1173cae 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -946,7 +946,7 @@
     HANDLE hFind;
 
     if( len > MAX_PATH - 3 )
-        return( POLARSSL_ERR_X509_INVALID_INPUT );
+        return( POLARSSL_ERR_X509_BAD_INPUT_DATA );
 
 	memset( szDir, 0, sizeof(szDir) );
 	memset( filename, 0, MAX_PATH );