[WBEMPROX]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 23 Jul 2014 18:50:09 +0000 (18:50 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 23 Jul 2014 18:50:09 +0000 (18:50 +0000)
- Don't omit lpBytesReturned in DeviceIoControl call
ROSTESTS-120 #resolve

svn path=/trunk/; revision=63733

reactos/dll/win32/wbemprox/builtin.c
rostests/winetests/wbemprox/query.c

index c053be7..b2369e7 100644 (file)
@@ -1477,6 +1477,7 @@ static UINT64 get_freespace( const WCHAR *dir, UINT64 *disksize )
     ULARGE_INTEGER free;
     DISK_GEOMETRY_EX info;
     HANDLE handle;
+    DWORD bytes_returned;
 
     free.QuadPart = 512 * 1024 * 1024;
     GetDiskFreeSpaceExW( dir, NULL, NULL, &free );
@@ -1485,7 +1486,7 @@ static UINT64 get_freespace( const WCHAR *dir, UINT64 *disksize )
     handle = CreateFileW( root, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, 0 );
     if (handle != INVALID_HANDLE_VALUE)
     {
-        if (DeviceIoControl( handle, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0, &info, sizeof(info), NULL, NULL ))
+        if (DeviceIoControl( handle, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0, &info, sizeof(info), &bytes_returned, NULL ))
             *disksize = info.DiskSize.QuadPart;
         CloseHandle( handle );
     }
index e1ed5be..d244dad 100644 (file)
@@ -675,14 +675,7 @@ START_TEST(query)
                             RPC_C_AUTHN_LEVEL_CALL, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE );
     ok( hr == S_OK, "failed to set proxy blanket %08x\n", hr );
 
-    if (!winetest_interactive)
-    {
-        skip("test_select( services ), ROSTESTS-120\n");
-    }
-    else
-    {
-        test_select( services );
-    }
+    test_select( services );
     test_Win32_Process( services );
     test_Win32_Service( services );
     test_StdRegProv( services );