diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-01 18:49:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-01 18:49:22 +0200 |
commit | 74838f16f6c838251af1e8b81a6064a9cac50464 (patch) | |
tree | 0f4bbda6c9266c3df8071cd37cb258510adfd6dd /apps/win_main.c | |
parent | 7f940ad522ceb63bc5d54923a1635773ca592b9b (diff) | |
download | mupdf-74838f16f6c838251af1e8b81a6064a9cac50464.tar.xz |
Remove silly warnings from MSVC.
Diffstat (limited to 'apps/win_main.c')
-rw-r--r-- | apps/win_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index 7de84d2d..5a16e357 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -63,7 +63,7 @@ void win32error(char *msg) NULL, code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - &buf, 0, NULL); + (LPSTR)&buf, 0, NULL); winerror(&gapp, fz_throw("%s:\n%s", msg, buf)); } @@ -234,7 +234,7 @@ dlogaboutproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) return FALSE; } -void winhelp() +void winhelp(pdfapp_t*app) { int code = DialogBoxW(NULL, L"IDD_DLOGABOUT", hwndframe, dlogaboutproc); if (code <= 0) @@ -546,7 +546,7 @@ void winreloadfile(pdfapp_t *app) void winopenuri(pdfapp_t *app, char *buf) { - ShellExecute(hwndframe, "open", buf, 0, 0, SW_SHOWNORMAL); + ShellExecuteA(hwndframe, "open", buf, 0, 0, SW_SHOWNORMAL); } void handlekey(int c) @@ -615,7 +615,7 @@ frameproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_SYSCOMMAND: if (wParam == ID_ABOUT) { - winhelp(); + winhelp(&gapp); return 0; } if (wParam == ID_DOCINFO) |