summaryrefslogtreecommitdiff
path: root/os-win32.c
diff options
context:
space:
mode:
authormunkyu.im <munkyu.im@samsung.com>2012-03-07 15:59:04 +0900
committermunkyu.im <munkyu.im@samsung.com>2012-03-07 15:59:04 +0900
commite7d7ae166f491e8716d931177f9b527479e85541 (patch)
tree6735b455ec2889e10f4b3a37e41be7bcdbadc390 /os-win32.c
parent146ee5c274d301613e1dfea88528d8127cba0909 (diff)
downloadqemu-e7d7ae166f491e8716d931177f9b527479e85541.tar.gz
qemu-e7d7ae166f491e8716d931177f9b527479e85541.tar.bz2
qemu-e7d7ae166f491e8716d931177f9b527479e85541.zip
[Title]convert utf8 to cp949 (CreateFile)
[Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
Diffstat (limited to 'os-win32.c')
-rw-r--r--os-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os-win32.c b/os-win32.c
index 8ad5fa1fc3..444cf70cba 100644
--- a/os-win32.c
+++ b/os-win32.c
@@ -129,7 +129,7 @@ int qemu_create_pidfile(const char *filename)
BOOL ret;
memset(&overlap, 0, sizeof(overlap));
- file = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_READ, NULL,
+ file = CreateFile(g_win32_locale_filename_from_utf8(filename), GENERIC_WRITE, FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (file == INVALID_HANDLE_VALUE) {