Ignore:
Timestamp:
Feb 21, 2010, 5:32:09 PM (16 years ago)
Author:
rlwalsh
Message:

eliminate VACPP warning & info msgs - see Ticket #1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crypt32/serialize.c

    r21311 r21354  
    2121
    2222#include <stdarg.h>
     23#include <string.h>
    2324#include "windef.h"
    2425#include "winbase.h"
     
    615616static BOOL CRYPT_FileOutputFunc(void *handle, const void *buffer, DWORD size)
    616617{
    617     return WriteFile(handle, buffer, size, &size, NULL);
     618    return WriteFile((HANDLE)handle, buffer, size, &size, NULL);
    618619}
    619620
     
    622623    SetFilePointer(file, 0, NULL, FILE_BEGIN);
    623624    return CRYPT_WriteSerializedStoreToStream(store, CRYPT_FileOutputFunc,
    624      file);
     625     (void*)file);
    625626}
    626627
     
    739740            ret = CRYPT_SavePKCSToMem(store, dwMsgAndCertEncodingType, &blob);
    740741            if (ret)
    741                 ret = WriteFile(handle, blob.pbData, blob.cbData,
     742                ret = WriteFile((HANDLE)handle, blob.pbData, blob.cbData,
    742743                 &blob.cbData, NULL);
    743744        }
     
    755756 DWORD dwMsgAndCertEncodingType, void *handle)
    756757{
    757     return CRYPT_WriteSerializedStoreToFile(handle, store);
     758    return CRYPT_WriteSerializedStoreToFile((HANDLE)handle, store);
    758759}
    759760
     
    857858        break;
    858859    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,
    860861         CREATE_ALWAYS, 0, NULL);
    861862        saveFunc = dwSaveAs == CERT_STORE_SAVE_AS_STORE ?
     
    863864        break;
    864865    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,
    866867         CREATE_ALWAYS, 0, NULL);
    867868        saveFunc = dwSaveAs == CERT_STORE_SAVE_AS_STORE ?
Note: See TracChangeset for help on using the changeset viewer.