diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-25 14:11:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-25 14:11:03 -0400 |
| commit | c7a195a1c4da41317916141fa0cfd0aabfdecfff (patch) | |
| tree | ef89d7f19a8df8364f65e22c5fe001d0a5b5780b /tests | |
| parent | efc4e7e56a7b8a406e37ef7b6444996b9e377cc7 (diff) | |
| parent | 4bbe5e6ea6f2084c4153fb6205115bd43db0a300 (diff) | |
| download | libgit2-c7a195a1c4da41317916141fa0cfd0aabfdecfff.tar.gz | |
Merge pull request #6006 from boretrk/c11-warnings
GCC C11 warnings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/link.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/core/link.c b/tests/core/link.c index 1e5ed454c..0493edf1d 100644 --- a/tests/core/link.c +++ b/tests/core/link.c @@ -123,7 +123,7 @@ static void do_junction(const char *old, const char *new) reparse_buf = LocalAlloc(LMEM_FIXED|LMEM_ZEROINIT, reparse_buflen); cl_assert(reparse_buf); - subst_utf16 = reparse_buf->MountPointReparseBuffer.PathBuffer; + subst_utf16 = reparse_buf->ReparseBuffer.MountPoint.PathBuffer; print_utf16 = subst_utf16 + subst_utf16_len + 1; ret = git__utf8_to_16(subst_utf16, subst_utf16_len + 1, @@ -135,10 +135,10 @@ static void do_junction(const char *old, const char *new) cl_assert_equal_i(print_utf16_len, ret); reparse_buf->ReparseTag = IO_REPARSE_TAG_MOUNT_POINT; - reparse_buf->MountPointReparseBuffer.SubstituteNameOffset = 0; - reparse_buf->MountPointReparseBuffer.SubstituteNameLength = subst_byte_len; - reparse_buf->MountPointReparseBuffer.PrintNameOffset = (USHORT)(subst_byte_len + sizeof(WCHAR)); - reparse_buf->MountPointReparseBuffer.PrintNameLength = print_byte_len; + reparse_buf->ReparseBuffer.MountPoint.SubstituteNameOffset = 0; + reparse_buf->ReparseBuffer.MountPoint.SubstituteNameLength = subst_byte_len; + reparse_buf->ReparseBuffer.MountPoint.PrintNameOffset = (USHORT)(subst_byte_len + sizeof(WCHAR)); + reparse_buf->ReparseBuffer.MountPoint.PrintNameLength = print_byte_len; reparse_buf->ReparseDataLength = reparse_buflen - REPARSE_DATA_HEADER_SIZE; cl_win32_pass(DeviceIoControl(handle, FSCTL_SET_REPARSE_POINT, |
