Xming: Always remove temporary file used when invoking xkbcomp on Win32
authorColin Harrison <colin.harrison@virgin.net>
Sat, 8 Oct 2011 13:39:07 +0000 (14:39 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 2 Nov 2011 14:07:36 +0000 (14:07 +0000)
commitf6529a05a2f087cb57a7fe84f226fef3780728d0
tree9a6e039b931bb8fa0e23d1ee1d55538e15371daa
parentee1985386700288af1a8b1789dcad0d7d9c97393
Xming: Always remove temporary file used when invoking xkbcomp on Win32

When built for native Win32, pipe() & fork() aren't available, so we
use a tempoary file and system() to invoke xkbcomp

Ensure the temporary file is always removed. It was only being removed
on most errors, not on success :S

Also fix a couple of warnings which occur when built with WIN32 defined

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
xkb/ddxList.c
xkb/ddxLoad.c