summaryrefslogtreecommitdiff
path: root/apps/win_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/win_main.c')
-rw-r--r--apps/win_main.c8
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)