From fdd021c5650584421751a91b81a98ed6dbc9ef2f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 31 Mar 2013 19:09:45 +0000 Subject: Fix file selector issues with Windows build. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2571 --- textscreen/txt_fileselect.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'textscreen/txt_fileselect.c') diff --git a/textscreen/txt_fileselect.c b/textscreen/txt_fileselect.c index e0e7505b..5cc53aad 100644 --- a/textscreen/txt_fileselect.c +++ b/textscreen/txt_fileselect.c @@ -149,8 +149,8 @@ static char *ExecReadOutput(char **argv) #include static BOOL WINAPI (*MyGetOpenFileName)(LPOPENFILENAME) = NULL; -static PIDLIST_ABSOLUTE (*MySHBrowseForFolder)(LPBROWSEINFO) = NULL; -static BOOL (*MySHGetPathFromIDList)(PCIDLIST_ABSOLUTE, LPTSTR) = NULL; +static LPITEMIDLIST (*MySHBrowseForFolder)(LPBROWSEINFO) = NULL; +static BOOL (*MySHGetPathFromIDList)(LPITEMIDLIST, LPTSTR) = NULL; // Load library functions from DLL files. @@ -176,7 +176,7 @@ static int LoadDLLs(void) && MySHGetPathFromIDList != NULL; } -static InitLibraries(void) +static int InitLibraries(void) { static int initted = 0, success = 0; @@ -233,7 +233,6 @@ static char *SelectDirectory(char *window_title) { LPITEMIDLIST pidl; BROWSEINFO bi; - LPMALLOC allocator; char selected[MAX_PATH] = ""; char *result; -- cgit v1.2.3