Revert ABORTPROC to bool, where appropriate

This commit is contained in:
Holger Vogt 2024-12-07 20:02:04 +01:00
parent deb3cd9809
commit b7092ff19b
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ void WPRINT_PrintInit(HWND hwnd)
} }
/* Abort-Procedur zum Drucken */ /* Abort-Procedur zum Drucken */
ABORTPROC CALLBACK WPRINT_Abort(HDC hdc, int iError) bool CALLBACK WPRINT_Abort(HDC hdc, int iError)
{ {
NG_IGNORE(hdc); NG_IGNORE(hdc);
NG_IGNORE(iError); NG_IGNORE(iError);
@ -110,7 +110,7 @@ ABORTPROC CALLBACK WPRINT_Abort(HDC hdc, int iError)
WaitForIdle(); WaitForIdle();
/* Warten */ /* Warten */
return (ABORTPROC)TRUE; return TRUE;
} }
@ -225,7 +225,7 @@ int WPRINT_Init(void)
} }
/* Abort-Prozedur setzen */ /* Abort-Prozedur setzen */
SetAbortProc( PrinterDC, WPRINT_Abort); SetAbortProc( PrinterDC, (ABORTPROC)WPRINT_Abort);
} }
/* fertig */ /* fertig */
return (0); return (0);

View File

@ -6,7 +6,7 @@
#define ngspice_WINPRINT_H #define ngspice_WINPRINT_H
void WPRINT_PrintInit(HWND hwnd); void WPRINT_PrintInit(HWND hwnd);
ABORTPROC CALLBACK WPRINT_Abort( HDC hdc, int iError); bool CALLBACK WPRINT_Abort( HDC hdc, int iError);
int WPRINT_Init(void); int WPRINT_Init(void);
int WPRINT_NewViewport( GRAPH * graph); int WPRINT_NewViewport( GRAPH * graph);
int WPRINT_Close(void); int WPRINT_Close(void);