Michael Stefaniuc : shell32: Use the proper type for a function pointer field.
Alexandre Julliard
julliard at winehq.org
Tue Nov 20 13:52:23 CST 2012
Module: wine
Branch: master
Commit: 0705793eb0abf9e716dfd7407dda1348bbf32484
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0705793eb0abf9e716dfd7407dda1348bbf32484
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Nov 20 13:13:18 2012 +0100
shell32: Use the proper type for a function pointer field.
---
dlls/shell32/shellord.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index 7f329de..c1fb382 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -60,7 +60,7 @@ typedef struct tagCREATEMRULIST
DWORD dwFlags; /* see below */
HKEY hKey; /* root reg. key under which list is saved */
LPCSTR lpszSubKey; /* reg. subkey */
- PROC lpfnCompare; /* item compare proc */
+ int (CALLBACK *lpfnCompare)(LPCVOID, LPCVOID, DWORD); /* item compare proc */
} CREATEMRULISTA, *LPCREATEMRULISTA;
/* dwFlags */
@@ -927,7 +927,7 @@ void WINAPI SHAddToRecentDocs (UINT uFlags,LPCVOID pv)
mymru.dwFlags = MRUF_BINARY_LIST | MRUF_DELAYED_SAVE;
mymru.hKey = HCUbasekey;
mymru.lpszSubKey = "RecentDocs";
- mymru.lpfnCompare = (PROC)SHADD_compare_mru;
+ mymru.lpfnCompare = SHADD_compare_mru;
mruhandle = CreateMRUListA(&mymru);
if (!mruhandle) {
/* MRU failed */
More information about the wine-cvs
mailing list