comparison win/dw.c @ 2035:ea303d356419

Mac: Const changes to match the Windows changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 17 Nov 2019 04:07:39 +0000
parents 89d62197124b
children 133f29e9f488
comparison
equal deleted inserted replaced
2034:89d62197124b 2035:ea303d356419
12372 * Returns: 12372 * Returns:
12373 * NULL on error. A malloced buffer containing 12373 * NULL on error. A malloced buffer containing
12374 * the file path on success. 12374 * the file path on success.
12375 * 12375 *
12376 */ 12376 */
12377 char * API dw_file_browse(const char *title, const char *defpath, char *ext, int flags) 12377 char * API dw_file_browse(const char *title, const char *defpath, const char *ext, int flags)
12378 { 12378 {
12379 OPENFILENAME of = {0}; 12379 OPENFILENAME of = {0};
12380 TCHAR filenamebuf[BROWSEBUFSIZE+1] = {0}, *fbuf = filenamebuf; 12380 TCHAR filenamebuf[BROWSEBUFSIZE+1] = {0}, *fbuf = filenamebuf;
12381 TCHAR filterbuf[BROWSEBUFSIZE+1] = {0}; 12381 TCHAR filterbuf[BROWSEBUFSIZE+1] = {0};
12382 TCHAR *exten = UTF8toWide(ext); 12382 TCHAR *exten = UTF8toWide(ext);