VirtualBox

Ignore:
Timestamp:
Feb 24, 2019 4:20:52 PM (6 years ago)
Author:
vboxsync
Message:

ValidationKit/FsPerf: Windows build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp

    r77446 r77447  
    24962496        /* Memory map it read-write (no COW). */
    24972497#ifdef RT_OS_WINDOWS
    2498         pbMapping = NULL;
     2498        uint8_t *pbMapping = NULL;
    24992499        HANDLE hSection = CreateFileMapping((HANDLE)RTFileToNative(hFile2), NULL, PAGE_READWRITE, 0, sizeof(s_abContent), NULL);
    25002500        RTTESTI_CHECK_MSG(hSection  != NULL, ("last error %u\n", GetLastError));
     
    25352535            {
    25362536                *puCur = ~*puCur;
    2537                 puCur;
     2537                puCur++;
    25382538            }
    25392539
    25402540            /* Sync it all. */
    25412541#  ifdef RT_OS_WINDOWS
    2542             RTTESTI_CHECK(FlushViewOfFile(pbMapping, sizeof(s_abContent));
     2542            RTTESTI_CHECK(FlushViewOfFile(pbMapping, sizeof(s_abContent)));
    25432543#  else
    25442544            RTTESTI_CHECK(msync(pbMapping, sizeof(s_abContent), MS_SYNC) == 0);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette