Michael Stefaniuc : ntdll/tests: Avoid using the comma operator.

Alexandre Julliard julliard at winehq.org
Mon Mar 4 15:08:24 CST 2019


Module: wine
Branch: master
Commit: a4ff7ea2b486bcc5042712fe3e553ca33fe6b06a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a4ff7ea2b486bcc5042712fe3e553ca33fe6b06a

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Mar  1 21:08:19 2019 +0100

ntdll/tests: Avoid using the comma operator.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/directory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/directory.c b/dlls/ntdll/tests/directory.c
index a69b31b..1109f7f 100644
--- a/dlls/ntdll/tests/directory.c
+++ b/dlls/ntdll/tests/directory.c
@@ -619,7 +619,7 @@ static void test_NtQueryDirectoryFile(void)
     ok( filename[0] == '.' && filename[1] == '.', "incorrect long file name: %s\n",
         wine_dbgstr_wn(next->FileName, next->FileNameLength/sizeof(WCHAR)));
 
-    data_size = fbdi->NextEntryOffset + offsetof( FILE_BOTH_DIRECTORY_INFORMATION, FileName[1] ),
+    data_size = fbdi->NextEntryOffset + offsetof( FILE_BOTH_DIRECTORY_INFORMATION, FileName[1] );
     memset( data, 0x55, data_size );
     U(io).Status = 0xdeadbeef;
     U(io).Information = 0xdeadbeef;
@@ -636,7 +636,7 @@ static void test_NtQueryDirectoryFile(void)
     next = (FILE_BOTH_DIRECTORY_INFORMATION *)&fbdi->FileName[1];
     ok( next->NextEntryOffset == 0x55555555, "wrong offset %x\n",  next->NextEntryOffset );
 
-    data_size = fbdi->NextEntryOffset + offsetof( FILE_BOTH_DIRECTORY_INFORMATION, FileName[2] ),
+    data_size = fbdi->NextEntryOffset + offsetof( FILE_BOTH_DIRECTORY_INFORMATION, FileName[2] );
     memset( data, 0x55, data_size );
     U(io).Status = 0xdeadbeef;
     U(io).Information = 0xdeadbeef;




More information about the wine-cvs mailing list