Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6289a584
Commit
6289a584
authored
Oct 20, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Remove unneeded UNALIGNED attributes.
They are causing compiler warnings.
parent
9a4e41c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ordinal.c
dlls/shlwapi/ordinal.c
+2
-2
ordinal.c
dlls/shlwapi/tests/ordinal.c
+5
-5
shlwapi.h
include/shlwapi.h
+2
-2
No files found.
dlls/shlwapi/ordinal.c
View file @
6289a584
...
...
@@ -4282,7 +4282,7 @@ HRESULT WINAPI SHCreatePropertyBagOnRegKey (HKEY hKey, LPCWSTR subkey,
* failure: 0
*
*/
INT
WINAPI
SHFormatDateTimeW
(
const
FILETIME
UNALIGNED
*
fileTime
,
DWORD
*
flags
,
INT
WINAPI
SHFormatDateTimeW
(
const
FILETIME
*
fileTime
,
DWORD
*
flags
,
LPWSTR
buf
,
UINT
size
)
{
#define SHFORMATDT_UNSUPPORTED_FLAGS (FDTF_RELATIVE | FDTF_LTRDATE | FDTF_RTLDATE | FDTF_NOAUTOREADINGORDER)
...
...
@@ -4346,7 +4346,7 @@ INT WINAPI SHFormatDateTimeW(const FILETIME UNALIGNED *fileTime, DWORD *flags,
* See SHFormatDateTimeW.
*
*/
INT
WINAPI
SHFormatDateTimeA
(
const
FILETIME
UNALIGNED
*
fileTime
,
DWORD
*
flags
,
INT
WINAPI
SHFormatDateTimeA
(
const
FILETIME
*
fileTime
,
DWORD
*
flags
,
LPSTR
buf
,
UINT
size
)
{
WCHAR
*
bufW
;
...
...
dlls/shlwapi/tests/ordinal.c
View file @
6289a584
...
...
@@ -51,8 +51,8 @@ static HRESULT(WINAPI *pIConnectionPoint_InvokeWithCancel)(IConnectionPoint*,DIS
static
HRESULT
(
WINAPI
*
pConnectToConnectionPoint
)(
IUnknown
*
,
REFIID
,
BOOL
,
IUnknown
*
,
LPDWORD
,
IConnectionPoint
**
);
static
HRESULT
(
WINAPI
*
pSHPropertyBag_ReadLONG
)(
IPropertyBag
*
,
LPCWSTR
,
LPLONG
);
static
LONG
(
WINAPI
*
pSHSetWindowBits
)(
HWND
,
INT
,
UINT
,
UINT
);
static
INT
(
WINAPI
*
pSHFormatDateTimeA
)(
const
FILETIME
UNALIGNED
*
,
DWORD
*
,
LPSTR
,
UINT
);
static
INT
(
WINAPI
*
pSHFormatDateTimeW
)(
const
FILETIME
UNALIGNED
*
,
DWORD
*
,
LPWSTR
,
UINT
);
static
INT
(
WINAPI
*
pSHFormatDateTimeA
)(
const
FILETIME
*
,
DWORD
*
,
LPSTR
,
UINT
);
static
INT
(
WINAPI
*
pSHFormatDateTimeW
)(
const
FILETIME
*
,
DWORD
*
,
LPWSTR
,
UINT
);
static
DWORD
(
WINAPI
*
pSHGetObjectCompatFlags
)(
IUnknown
*
,
const
CLSID
*
);
static
BOOL
(
WINAPI
*
pGUIDFromStringA
)(
LPSTR
,
CLSID
*
);
static
HRESULT
(
WINAPI
*
pIUnknown_QueryServiceExec
)(
IUnknown
*
,
REFIID
,
const
GUID
*
,
DWORD
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
...
...
@@ -1668,8 +1668,8 @@ static void test_SHSetWindowBits(void)
static
void
test_SHFormatDateTimeA
(
const
SYSTEMTIME
*
st
)
{
FILETIME
UNALIGNED
filetime
;
FILETIME
UNALIGNED
filetimeCheck
;
FILETIME
filetime
;
FILETIME
filetimeCheck
;
SYSTEMTIME
universalSystemTime
;
CHAR
buff
[
100
],
buff2
[
100
],
buff3
[
100
];
BOOL
dstMatch
;
...
...
@@ -1837,7 +1837,7 @@ static void test_SHFormatDateTimeA(const SYSTEMTIME *st)
static
void
test_SHFormatDateTimeW
(
void
)
{
FILETIME
UNALIGNED
filetime
;
FILETIME
filetime
;
SYSTEMTIME
universalSystemTime
;
WCHAR
buff
[
100
],
buff2
[
100
],
buff3
[
100
],
*
p1
,
*
p2
;
SYSTEMTIME
st
;
...
...
include/shlwapi.h
View file @
6289a584
...
...
@@ -1166,8 +1166,8 @@ WINSHLWAPI BOOL WINAPI IsOS(DWORD);
#define FDTF_RTLDATE 0x00000200
#define FDTF_NOAUTOREADINGORDER 0x00000400
WINSHLWAPI
int
WINAPI
SHFormatDateTimeA
(
const
FILETIME
UNALIGNED
*
filetime
,
DWORD
*
flags
,
LPSTR
buffer
,
UINT
size
);
WINSHLWAPI
int
WINAPI
SHFormatDateTimeW
(
const
FILETIME
UNALIGNED
*
filetime
,
DWORD
*
flags
,
LPWSTR
buffer
,
UINT
size
);
WINSHLWAPI
int
WINAPI
SHFormatDateTimeA
(
const
FILETIME
*
filetime
,
DWORD
*
flags
,
LPSTR
buffer
,
UINT
size
);
WINSHLWAPI
int
WINAPI
SHFormatDateTimeW
(
const
FILETIME
*
filetime
,
DWORD
*
flags
,
LPWSTR
buffer
,
UINT
size
);
typedef
struct
{
...
...
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