X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil_cred.c;fp=moonshot%2Fmech_eap%2Futil_cred.c;h=bd5bf667bdf27c7f814f83d74c9b1ba1ca95505d;hp=856c0a5da5f47c2dc4a5bf2de504b0bb536adb76;hb=9da959f11ebc69e0ae63bc3464b258d161d01cd2;hpb=27c09a0b09f26d113267c9548305d56fac1a0727 diff --git a/moonshot/mech_eap/util_cred.c b/moonshot/mech_eap/util_cred.c index 856c0a5..bd5bf66 100644 --- a/moonshot/mech_eap/util_cred.c +++ b/moonshot/mech_eap/util_cred.c @@ -37,9 +37,10 @@ #include "gssapiP_eap.h" #ifdef WIN32 -#include +# include /* may need to use ShFolder.h instead */ +# include #else -#include +# include #endif OM_uint32 @@ -155,10 +156,10 @@ readStaticIdentityFile(OM_uint32 *minor, if (!SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, /* |CSIDL_FLAG_CREATE */ NULL, /* User access token */ - 0, + 0, /* SHGFP_TYPE_CURRENT */ szPath))) { major = GSS_S_CRED_UNAVAIL; - *minor = GetLastError(); + *minor = GSSEAP_GET_LAST_ERROR(); /* XXX */ goto cleanup; }