Vitaly Lipatov : kernel32: gethostname returns string in CP_UNIXCP encoding .
Alexandre Julliard
julliard at winehq.org
Mon Dec 1 07:34:18 CST 2008
Module: wine
Branch: master
Commit: aa5358fdae5c24c29a151f4cee03268d05e4be8c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa5358fdae5c24c29a151f4cee03268d05e4be8c
Author: Vitaly Lipatov <lav at etersoft.ru>
Date: Fri Nov 28 16:27:04 2008 +0300
kernel32: gethostname returns string in CP_UNIXCP encoding.
---
dlls/kernel32/computername.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/computername.c b/dlls/kernel32/computername.c
index 5e811f8..7ddbac8 100644
--- a/dlls/kernel32/computername.c
+++ b/dlls/kernel32/computername.c
@@ -268,7 +268,7 @@ void COMPUTERNAME_Init (void)
dot = strchr ( hbuf, '.' );
if ( dot ) *dot = 0;
hlen = strlen ( hbuf );
- len = MultiByteToWideChar( CP_ACP, 0, hbuf, hlen + 1, computer_name, MAX_COMPUTERNAME_LENGTH + 1 )
+ len = MultiByteToWideChar( CP_UNIXCP, 0, hbuf, hlen + 1, computer_name, MAX_COMPUTERNAME_LENGTH + 1 )
* sizeof( WCHAR );
if ( NtSetValueKey( hsubkey, &nameW, 0, REG_SZ, computer_name, len ) != STATUS_SUCCESS )
WARN ( "failed to set ComputerName\n" );
More information about the wine-cvs
mailing list