summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-06-24 20:08:14 +0000
committerAdam Tkac <atkac@redhat.com>2010-06-24 20:08:14 +0000
commitae1ac9710b2735a5663b5d9521417cc3a65f175b (patch)
tree9ae654f0fc1c6f55e00268001b6c984a32d049c1 /win
parentc0b557bbd3f2b115fc5786933314f139df0d0427 (diff)
downloadtigervnc-ae1ac9710b2735a5663b5d9521417cc3a65f175b.tar.gz
tigervnc-ae1ac9710b2735a5663b5d9521417cc3a65f175b.zip
[Bugfix] Third parameter of GetLocaleInfo is LPTSTR. Also compute the 4th
parameter more precisely. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4071 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r--win/rfb_win32/CKeyboard.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/rfb_win32/CKeyboard.cxx b/win/rfb_win32/CKeyboard.cxx
index ee5b85eb..408e483a 100644
--- a/win/rfb_win32/CKeyboard.cxx
+++ b/win/rfb_win32/CKeyboard.cxx
@@ -64,7 +64,8 @@ public:
// be a comma and a DECIMAL to be a dot.
if (extendedVkey == VK_DECIMAL || extendedVkey == VK_SEPARATOR) {
char buf[4];
- if (!GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, (LPSTR) buf, sizeof(buf))) {
+ if (!GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, (LPTSTR) buf,
+ sizeof(buf) / sizeof(TCHAR))) {
vlog.debug("failed to retrieve LOCALE_SDECIMAL");
} else {
switch (buf[0]) {