shdocvw: The WINAPI modifier on function pointers should become before the '*' for portability.
This commit is contained in:
parent
dfda3c4dc8
commit
99bde8b0b4
|
@ -217,7 +217,7 @@ static void* fetch_shlwapi_ordinal(unsigned ord)
|
|||
*/
|
||||
DWORD WINAPI WhichPlatformFORWARD(void)
|
||||
{
|
||||
static DWORD (*WINAPI p)(void);
|
||||
static DWORD (WINAPI *p)(void);
|
||||
|
||||
if (p || (p = fetch_shlwapi_ordinal(276))) return p();
|
||||
return 1; /* not integrated, see shlwapi.WhichPlatform */
|
||||
|
@ -228,7 +228,7 @@ DWORD WINAPI WhichPlatformFORWARD(void)
|
|||
*/
|
||||
void WINAPI StopWatchModeFORWARD(void)
|
||||
{
|
||||
static void (*WINAPI p)(void);
|
||||
static void (WINAPI *p)(void);
|
||||
|
||||
if (p || (p = fetch_shlwapi_ordinal(241))) p();
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ void WINAPI StopWatchModeFORWARD(void)
|
|||
*/
|
||||
void WINAPI StopWatchFlushFORWARD(void)
|
||||
{
|
||||
static void (*WINAPI p)(void);
|
||||
static void (WINAPI *p)(void);
|
||||
|
||||
if (p || (p = fetch_shlwapi_ordinal(242))) p();
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ void WINAPI StopWatchFlushFORWARD(void)
|
|||
DWORD WINAPI StopWatchWFORWARD(DWORD dwClass, LPCWSTR lpszStr, DWORD dwUnknown,
|
||||
DWORD dwMode, DWORD dwTimeStamp)
|
||||
{
|
||||
static DWORD (*WINAPI p)(DWORD, LPCWSTR, DWORD, DWORD, DWORD);
|
||||
static DWORD (WINAPI *p)(DWORD, LPCWSTR, DWORD, DWORD, DWORD);
|
||||
|
||||
if (p || (p = fetch_shlwapi_ordinal(243)))
|
||||
return p(dwClass, lpszStr, dwUnknown, dwMode, dwTimeStamp);
|
||||
|
@ -262,7 +262,7 @@ DWORD WINAPI StopWatchWFORWARD(DWORD dwClass, LPCWSTR lpszStr, DWORD dwUnknown,
|
|||
DWORD WINAPI StopWatchAFORWARD(DWORD dwClass, LPCSTR lpszStr, DWORD dwUnknown,
|
||||
DWORD dwMode, DWORD dwTimeStamp)
|
||||
{
|
||||
static DWORD (*WINAPI p)(DWORD, LPCSTR, DWORD, DWORD, DWORD);
|
||||
static DWORD (WINAPI *p)(DWORD, LPCSTR, DWORD, DWORD, DWORD);
|
||||
|
||||
if (p || (p = fetch_shlwapi_ordinal(244)))
|
||||
return p(dwClass, lpszStr, dwUnknown, dwMode, dwTimeStamp);
|
||||
|
|
Loading…
Reference in New Issue