[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build error with _UNICODE on w32.
From: |
Eli Zaretskii |
Subject: |
Re: Build error with _UNICODE on w32. |
Date: |
Tue, 20 May 2008 21:20:18 +0300 |
> From: KOBAYASHI Yasuhiro <address@hidden>
> Cc: address@hidden
> Date: Tue, 20 May 2008 15:44:10 +0900
>
> The following is ad hoc one.
>
> w32.c:
> @@ -773,7 +773,7 @@
> dflt_passwd.pw_gid = get_rid (group_token.PrimaryGroup);
> dlength = sizeof (domain);
> if (lookup_account_sid (NULL, group_token.PrimaryGroup,
> - gname, &glength, NULL, &dlength,
> + gname, &glength, domain, &dlength,
> &user_type))
> strcpy (dflt_group_name, gname);
> }
I don't see how this alone could have settled everything. For
example, this very call to lookup_account_sid should pass wchar_t *
pointers instead of char *, because under UNICODE we call the
wide-character version of the function that returns strings encoded in
UTF-16. So this call (as well as many others) will simply not work
correctly under UNICODE.