Merge pull request #4781 from kumpera/unaligned-cleanup-1
[mono.git] / mono / metadata / mono-security-windows.c
index 63807a5ac8fdd999be398a52975549a1ac43e5f2..7a34c8a1a6186206251169b4a6e0602a3dfa0c98 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * mono-security-windows.c: Windows security support.
+/**
+ * \file
+ * Windows security support.
  *
  * Copyright 2016 Microsoft
  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
@@ -119,7 +120,7 @@ ves_icall_System_Security_Principal_WindowsIdentity_GetTokenName (gpointer token
                result = mono_string_new_utf16_checked (mono_domain_get (), uniname, size, &error);
        }
        else
-               result = mono_string_new (mono_domain_get (), "");
+               result = mono_string_new_checked (mono_domain_get (), "", &error);
 
        if (uniname)
                g_free (uniname);