shell32: Microsoft's EXP_DARWIN_LINK structure does not have a dbh

field so cast it to DATABLOCK_HEADER to access the dwSignature
field. Fixes the compilation with Visual C++ on Windows.
This commit is contained in:
Francois Gouget 2006-10-03 14:12:18 +02:00 committed by Alexandre Julliard
parent 398245b640
commit c22eb7e3a3
1 changed files with 1 additions and 6 deletions

View File

@ -32,11 +32,6 @@
#include "shell32_test.h"
#ifndef _MSC_VER
#define DBH(x) (x).dbh
#else
#define DBH(x) (x)
#endif
typedef void (WINAPI *fnILFree)(LPITEMIDLIST);
typedef BOOL (WINAPI *fnILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST);
@ -612,7 +607,7 @@ static void test_datalink(void)
r = dl->lpVtbl->CopyDataBlock( dl, EXP_DARWIN_ID_SIG, (LPVOID*) &dar );
ok( r == S_OK, "CopyDataBlock failed\n");
ok( dar && DBH(*dar).dwSignature == EXP_DARWIN_ID_SIG, "signature wrong\n");
ok( dar && ((DATABLOCK_HEADER*)dar)->dwSignature == EXP_DARWIN_ID_SIG, "signature wrong\n");
ok( dar && 0==lstrcmpW(dar->szwDarwinID, comp ), "signature wrong\n");
LocalFree( dar );