[runtime] Call error_init instead of mono_error_init (#4425)
[mono.git] / mono / metadata / mono-security-windows-uwp.c
index 01549b8d3fc91347f8070f9c15c87bb2f7be990b..bd1ebe9b3644e12c924ecf7fdf652e058e963ed8 100644 (file)
@@ -16,7 +16,7 @@ gpointer
 ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken (void)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("OpenThreadToken, OpenProcessToken");
 
@@ -32,7 +32,7 @@ MonoArray*
 ves_icall_System_Security_Principal_WindowsIdentity_GetRoles (gpointer token)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("GetTokenInformation");
 
@@ -48,7 +48,7 @@ gpointer
 ves_icall_System_Security_Principal_WindowsImpersonationContext_DuplicateToken (gpointer token)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("DuplicateToken");
 
@@ -64,7 +64,7 @@ gboolean
 ves_icall_System_Security_Principal_WindowsImpersonationContext_SetCurrentToken (gpointer token)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("ImpersonateLoggedOnUser");
 
@@ -80,7 +80,7 @@ gboolean
 ves_icall_System_Security_Principal_WindowsImpersonationContext_RevertToSelf (void)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("RevertToSelf");
 
@@ -96,7 +96,7 @@ gint32
 mono_security_win_get_token_name (gpointer token, gunichar2 ** uniname)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("GetTokenInformation");
 
@@ -112,7 +112,7 @@ gboolean
 mono_security_win_is_machine_protected (gunichar2 *path)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("GetNamedSecurityInfo, LocalFree");
 
@@ -128,7 +128,7 @@ gboolean
 mono_security_win_is_user_protected (gunichar2 *path)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("GetNamedSecurityInfo, LocalFree");
 
@@ -144,7 +144,7 @@ gboolean
 mono_security_win_protect_machine (gunichar2 *path)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("BuildTrusteeWithSid, SetEntriesInAcl, SetNamedSecurityInfo, LocalFree, FreeSid");
 
@@ -160,7 +160,7 @@ gboolean
 mono_security_win_protect_user (gunichar2 *path)
 {
        MonoError mono_error;
-       mono_error_init (&mono_error);
+       error_init (&mono_error);
 
        g_unsupported_api ("BuildTrusteeWithSid, SetEntriesInAcl, SetNamedSecurityInfo, LocalFree");