From 5bec0d7ef8bdeced18822b8018350d102460c4f3 Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Fri, 12 Mar 2004 01:52:11 +0000 Subject: [PATCH] Change GetFileTitleA/W prototype to match PSDK. --- dlls/commdlg/filetitle.c | 4 ++-- include/commdlg.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/commdlg/filetitle.c b/dlls/commdlg/filetitle.c index dc76925d777..6d2b9fe6c0b 100644 --- a/dlls/commdlg/filetitle.c +++ b/dlls/commdlg/filetitle.c @@ -40,7 +40,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg); * GetFileTitleA (COMDLG32.@) * */ -short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf) +short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf) { int ret; UNICODE_STRING strWFile; @@ -60,7 +60,7 @@ short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf) * GetFileTitleW (COMDLG32.@) * */ -short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf) +short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf) { int i, len; static const WCHAR brkpoint[] = {'*','[',']',0}; diff --git a/include/commdlg.h b/include/commdlg.h index 16271c20728..5bc5bbedb1c 100644 --- a/include/commdlg.h +++ b/include/commdlg.h @@ -670,8 +670,8 @@ DWORD WINAPI CommDlgExtendedError(void); HWND WINAPI FindTextA(LPFINDREPLACEA lpFind); HWND WINAPI FindTextW(LPFINDREPLACEW lpFind); #define FindText WINELIB_NAME_AW(FindText) -short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf); -short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf); +short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf); +short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf); #define GetFileTitle WINELIB_NAME_AW(GetFileTitle) BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn); BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);