Fixed some compiler errors and warnings.
diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c
index f8ebd36..c51b4f8 100644
--- a/programs/notepad/dialog.c
+++ b/programs/notepad/dialog.c
@@ -47,7 +47,7 @@
return (MessageBox(Globals.hMainWnd, szMessage, szCaption, type));
}
-void AlertFileNotFound(LPCSTR szFileName) {
+void AlertFileNotFound(LPSTR szFileName) {
int nResult;
CHAR szMessage[MAX_STRING_LEN];
@@ -65,7 +65,7 @@
}
-int AlertFileNotSaved(LPCSTR szFileName) {
+int AlertFileNotSaved(LPSTR szFileName) {
int nResult;
CHAR szMessage[MAX_STRING_LEN];
@@ -373,14 +373,14 @@
*/
/* Let commdlg manage copy settings */
- printer.nCopies = PD_USEDEVMODECOPIES;
+ printer.nCopies = (WORD)PD_USEDEVMODECOPIES;
if (PrintDlg(&printer)) {
/* initialize DOCINFO */
di.cbSize = sizeof(DOCINFO);
- lstrcpy(di.lpszDocName, szDocumentName);
- lstrcpy(di.lpszOutput, szOutput);
+ lstrcpy((LPSTR)di.lpszDocName, szDocumentName);
+ lstrcpy((LPSTR)di.lpszOutput, szOutput);
hContext = printer.hDC;
assert(hContext!=0);
@@ -627,7 +627,7 @@
WNDPROC lpfnDlg;
lpfnDlg = MakeProcInstance(DIALOG_PAGESETUP_DlgProc, Globals.hInstance);
- DialogBox(Globals.hInstance, STRING_PAGESETUP_Xx, Globals.hMainWnd, lpfnDlg);
+ DialogBox(Globals.hInstance, STRING_PAGESETUP_Xx, Globals.hMainWnd, (DLGPROC)lpfnDlg);
FreeProcInstance(lpfnDlg);
}