Merge tag 'v1.2.0' into tizen-arm
[sdk/emulator/qemu.git] / net / tap-win32.c
index c0ea954..d65fcf2 100644 (file)
@@ -591,7 +591,7 @@ static int tap_win32_open(tap_win32_overlapped_t **phandle,
               USERMODEDEVICEDIR,
               device_guid,
               TAPSUFFIX);
-
+#ifndef CONFIG_MARU
     handle = CreateFile (
         device_path,
         GENERIC_READ | GENERIC_WRITE,
@@ -600,7 +600,17 @@ static int tap_win32_open(tap_win32_overlapped_t **phandle,
         OPEN_EXISTING,
         FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED,
         0 );
+#else
+     handle = CreateFile (
+        g_win32_locale_filename_from_utf8(device_path),
+        GENERIC_READ | GENERIC_WRITE,
+        0,
+        0,
+        OPEN_EXISTING,
+        FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED,
+        0 );
 
+#endif
     if (handle == INVALID_HANDLE_VALUE) {
         return -1;
     }