summaryrefslogtreecommitdiff
path: root/hw/xwin/winconfig.c
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2010-02-26 14:40:30 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2010-03-16 13:56:58 +0000
commitcca4952d750779a4c58a11fe08a53336042930bb (patch)
treea6cc08aac2a55ae9820304fd6db659eee0c4851c /hw/xwin/winconfig.c
parentb8cf4153f84404b2a1b62a247d5d36d24bf481da (diff)
Xming: Warning fixes
Fix warnings due to prototypes not specifying function arguments Fix warning with RegQueryValueEx() Tidy up an include Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin/winconfig.c')
-rw-r--r--hw/xwin/winconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winconfig.c b/hw/xwin/winconfig.c
index 259b3d238..b05867ba9 100644
--- a/hw/xwin/winconfig.c
+++ b/hw/xwin/winconfig.c
@@ -330,7 +330,7 @@ winConfigKeyboard (DeviceIntPtr pDevice)
const char regtempl[] =
"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\";
char *regpath;
- char lname[256];
+ unsigned char lname[256];
DWORD namesize = sizeof(lname);
regpath = malloc(sizeof(regtempl) + KL_NAMELENGTH + 1);