Changeset 153 for trunk/openjdk/jdk/src


Ignore:
Timestamp:
Sep 20, 2010, 3:05:56 PM (15 years ago)
Author:
dmik
Message:

jdk: Adopted and enabled com.security.mscapi package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/native/sun/security/mscapi/security.cpp

    r2 r153  
    3535#include <wincrypt.h>
    3636#include <stdio.h>
    37 
     37#ifdef __WIN32OS2__
     38#include <excpt.h>
     39#endif
    3840
    3941#define OID_EKU_ANY         "2.5.29.37.0"
     
    843845            pwszContainerName = new WCHAR[dwDataLen];
    844846
    845             if (mbstowcs(pwszContainerName, pszContainerName, dwDataLen) == 0) {
     847            if (mbstowcs((wchar_t*)pwszContainerName, pszContainerName, dwDataLen) == 0) {
    846848                ThrowException(env, KEYSTORE_EXCEPTION, GetLastError());
    847849                __leave;
     
    880882            pwszProviderName = new WCHAR[dwDataLen];
    881883
    882             if (mbstowcs(pwszProviderName, pszProviderName, dwDataLen) == 0) {
     884            if (mbstowcs((wchar_t*)pwszProviderName, pszProviderName, dwDataLen) == 0) {
    883885                ThrowException(env, KEYSTORE_EXCEPTION, GetLastError());
    884886                __leave;
Note: See TracChangeset for help on using the changeset viewer.