aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-03-08 20:55:32 +0000
committerGerald Combs <gerald@wireshark.org>2006-03-08 20:55:32 +0000
commit9406c5db24b03444140ab81fdb13f6a186e1e8a5 (patch)
treeb35df42ea208c1120a98c32020fae4c9b2e751be /epan/dissectors/packet-dcerpc.c
parentdef11f9418610a95bccc68e5a31a32bb335099be (diff)
Use Unicode for all native Win32 calls. Unicode Windows applications
use UTF-16 internally and GTK+ 2.x uses UTF-8, which means we have to do a lots of conversions. Add utf_8to16() and utf_16to8 convenience functions to strutil.c. svn path=/trunk/; revision=17534
Diffstat (limited to 'epan/dissectors/packet-dcerpc.c')
-rw-r--r--epan/dissectors/packet-dcerpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c
index f1a3eec786..85067b3e0b 100644
--- a/epan/dissectors/packet-dcerpc.c
+++ b/epan/dissectors/packet-dcerpc.c
@@ -486,12 +486,12 @@ int ResolveWin32UUID(e_uuid_t if_id, char *UUID_NAME, int UUID_NAME_MAX_LEN)
char REG_UUID_NAME[MAX_PATH];
HKEY hKey = NULL;
DWORD UUID_MAX_SIZE = MAX_PATH;
- char REG_UUID_STR[MAX_PATH];
+ TCHAR REG_UUID_STR[MAX_PATH];
if(UUID_NAME_MAX_LEN < 2)
return 0;
REG_UUID_NAME[0] = '\0';
- g_snprintf(REG_UUID_STR, MAX_PATH, "SOFTWARE\\Classes\\Interface\\{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
+ _snwprintf(REG_UUID_STR, MAX_PATH, "SOFTWARE\\Classes\\Interface\\{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
if_id.Data1, if_id.Data2, if_id.Data3,
if_id.Data4[0], if_id.Data4[1],
if_id.Data4[2], if_id.Data4[3],