Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
96a5c442
Commit
96a5c442
authored
Aug 19, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix packing of shlwapi.h
Add a DECLSPEC_ALIGN(8) to force DLLVERSIONINFO2 to have the correct alignment.
parent
4c1438a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
generated.c
dlls/shlwapi/tests/generated.c
+12
-12
shlwapi.h
include/shlwapi.h
+2
-2
No files found.
dlls/shlwapi/tests/generated.c
View file @
96a5c442
...
...
@@ -129,22 +129,22 @@ static void test_pack_DLLGETVERSIONPROC(void)
static
void
test_pack_DLLVERSIONINFO
(
void
)
{
/* DLLVERSIONINFO (pack
1
) */
TEST_TYPE
(
DLLVERSIONINFO
,
20
,
1
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
cbSize
,
0
,
4
,
1
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwMajorVersion
,
4
,
4
,
1
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwMinorVersion
,
8
,
4
,
1
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwBuildNumber
,
12
,
4
,
1
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwPlatformID
,
16
,
4
,
1
);
/* DLLVERSIONINFO (pack
8
) */
TEST_TYPE
(
DLLVERSIONINFO
,
20
,
4
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
cbSize
,
0
,
4
,
4
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwMajorVersion
,
4
,
4
,
4
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwMinorVersion
,
8
,
4
,
4
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwBuildNumber
,
12
,
4
,
4
);
TEST_FIELD
(
DLLVERSIONINFO
,
DWORD
,
dwPlatformID
,
16
,
4
,
4
);
}
static
void
test_pack_DLLVERSIONINFO2
(
void
)
{
/* DLLVERSIONINFO2 (pack
1
) */
TEST_TYPE
(
DLLVERSIONINFO2
,
32
,
1
);
TEST_FIELD
(
DLLVERSIONINFO2
,
DLLVERSIONINFO
,
info1
,
0
,
20
,
1
);
TEST_FIELD
(
DLLVERSIONINFO2
,
DWORD
,
dwFlags
,
20
,
4
,
1
);
TEST_FIELD
(
DLLVERSIONINFO2
,
ULONGLONG
,
ullVersion
,
24
,
8
,
1
);
/* DLLVERSIONINFO2 (pack
8
) */
TEST_TYPE
(
DLLVERSIONINFO2
,
32
,
8
);
TEST_FIELD
(
DLLVERSIONINFO2
,
DLLVERSIONINFO
,
info1
,
0
,
20
,
4
);
TEST_FIELD
(
DLLVERSIONINFO2
,
DWORD
,
dwFlags
,
20
,
4
,
4
);
TEST_FIELD
(
DLLVERSIONINFO2
,
ULONGLONG
,
ullVersion
,
24
,
8
,
8
);
}
static
void
test_pack_HUSKEY
(
void
)
...
...
include/shlwapi.h
View file @
96a5c442
...
...
@@ -28,7 +28,7 @@
extern
"C"
{
#endif
/* defined(__cplusplus) */
#include <pshpack
1
.h>
#include <pshpack
8
.h>
#ifndef NO_SHLWAPI_REG
...
...
@@ -926,7 +926,7 @@ typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
typedef
struct
_DLLVERSIONINFO2
{
DLLVERSIONINFO
info1
;
DWORD
dwFlags
;
/* Reserved */
ULONGLONG
ullVersion
;
/* 16 bits each for Major, Minor, Build, QFE */
ULONGLONG
DECLSPEC_ALIGN
(
8
)
ullVersion
;
/* 16 bits each for Major, Minor, Build, QFE */
}
DLLVERSIONINFO2
;
#define DLLVER_MAJOR_MASK 0xFFFF000000000000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment