Changeset 21354 for trunk/src/crypt32/serialize.c
- Timestamp:
- Feb 21, 2010, 5:32:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/crypt32/serialize.c
r21311 r21354 21 21 22 22 #include <stdarg.h> 23 #include <string.h> 23 24 #include "windef.h" 24 25 #include "winbase.h" … … 615 616 static BOOL CRYPT_FileOutputFunc(void *handle, const void *buffer, DWORD size) 616 617 { 617 return WriteFile( handle, buffer, size, &size, NULL);618 return WriteFile((HANDLE)handle, buffer, size, &size, NULL); 618 619 } 619 620 … … 622 623 SetFilePointer(file, 0, NULL, FILE_BEGIN); 623 624 return CRYPT_WriteSerializedStoreToStream(store, CRYPT_FileOutputFunc, 624 file);625 (void*)file); 625 626 } 626 627 … … 739 740 ret = CRYPT_SavePKCSToMem(store, dwMsgAndCertEncodingType, &blob); 740 741 if (ret) 741 ret = WriteFile( handle, blob.pbData, blob.cbData,742 ret = WriteFile((HANDLE)handle, blob.pbData, blob.cbData, 742 743 &blob.cbData, NULL); 743 744 } … … 755 756 DWORD dwMsgAndCertEncodingType, void *handle) 756 757 { 757 return CRYPT_WriteSerializedStoreToFile( handle, store);758 return CRYPT_WriteSerializedStoreToFile((HANDLE)handle, store); 758 759 } 759 760 … … 857 858 break; 858 859 case CERT_STORE_SAVE_TO_FILENAME_A: 859 handle = CreateFileA((LPCSTR)pvSaveToPara, GENERIC_WRITE, 0, NULL,860 handle = (void*)CreateFileA((LPCSTR)pvSaveToPara, GENERIC_WRITE, 0, NULL, 860 861 CREATE_ALWAYS, 0, NULL); 861 862 saveFunc = dwSaveAs == CERT_STORE_SAVE_AS_STORE ? … … 863 864 break; 864 865 case CERT_STORE_SAVE_TO_FILENAME_W: 865 handle = CreateFileW((LPCWSTR)pvSaveToPara, GENERIC_WRITE, 0, NULL,866 handle = (void*)CreateFileW((LPCWSTR)pvSaveToPara, GENERIC_WRITE, 0, NULL, 866 867 CREATE_ALWAYS, 0, NULL); 867 868 saveFunc = dwSaveAs == CERT_STORE_SAVE_AS_STORE ?
Note:
See TracChangeset
for help on using the changeset viewer.