KERNEL: improve stubs for DnsHostnameToComputerName{A,W} (RESEND)

Dmitry Timoshkov dmitry at
Tue Mar 29 08:23:57 CST 2005

"Hans Leidekker" <hans at> wrote:

> +BOOL WINAPI DnsHostnameToComputerNameA(LPCSTR hostname,
> +    LPSTR computername, LPDWORD size)

> +    for (i = 0; i <= len; i++)
> +        computername[i] = toupper(hostname[i]);

You can't use toupper() from glibc on a name in a Windows encoding.
Why not just call a W version to do the job?


More information about the wine-devel mailing list