From 9444ae46e5afbb61f7c74fe58762864ddbc2e629 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Sun, 13 May 2012 22:50:38 +0000 Subject: [PATCH] Pesquisando erros aleatorios em win64 --- ctlr.c | 10 +++++----- init.c | 2 +- screen.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ctlr.c b/ctlr.c index ddf07c4..085e24b 100644 --- a/ctlr.c +++ b/ctlr.c @@ -228,7 +228,7 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) if(idx < 0 || idx >= (sizeof(sz)/sizeof(struct _sz))) { idx = 2; - popup_an_error(NULL,"Unknown model: %d - Defaulting to 4 (%dx%d)", mn, sz[idx].cols,sz[idx].rows); + popup_an_error(session,"Unknown model: %d - Defaulting to 4 (%dx%d)", mn, sz[idx].cols,sz[idx].rows); mn = 4; } @@ -240,13 +240,13 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) if (ovc != 0 || ovr != 0) { if (ovc <= 0 || ovr <= 0) - popup_an_error(NULL,"Invalid %s %dx%d:\nNegative or zero",ResOversize, ovc, ovr); + popup_an_error(session,"Invalid %s %dx%d:\nNegative or zero",ResOversize, ovc, ovr); else if (ovc * ovr >= 0x4000) - popup_an_error(NULL,"Invalid %s %dx%d:\nToo big",ResOversize, ovc, ovr); + popup_an_error(session,"Invalid %s %dx%d:\nToo big",ResOversize, ovc, ovr); else if (ovc > 0 && ovc < session->maxCOLS) - popup_an_error(NULL,"Invalid %s cols (%d):\nLess than model %d cols (%d)",ResOversize, ovc, session->model_num, session->maxCOLS); + popup_an_error(session,"Invalid %s cols (%d):\nLess than model %d cols (%d)",ResOversize, ovc, session->model_num, session->maxCOLS); else if (ovr > 0 && ovr < session->maxROWS) - popup_an_error(NULL,"Invalid %s rows (%d):\nLess than model %d rows (%d)",ResOversize, ovr, session->model_num, session->maxROWS); + popup_an_error(session,"Invalid %s rows (%d):\nLess than model %d rows (%d)",ResOversize, ovr, session->model_num, session->maxROWS); else update_model_info(session,mn,session->ov_cols = ovc,session->ov_rows = ovr); } diff --git a/init.c b/init.c index cb7055f..f7c5938 100644 --- a/init.c +++ b/init.c @@ -180,7 +180,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model) model_number = parse_model_number(hSession,model); if (model_number < 0) { - popup_an_error(NULL,"Invalid model number: %s", model); + popup_an_error(hSession,"Invalid model number: %s", model); model_number = 0; } diff --git a/screen.c b/screen.c index 777b606..74e5a33 100644 --- a/screen.c +++ b/screen.c @@ -660,7 +660,7 @@ void Warning(H3270 *session, const char *fmt, ...) } /* Pop up an error dialog. */ -extern void popup_an_error(H3270 *session, const char *fmt, ...) +void popup_an_error(H3270 *session, const char *fmt, ...) { va_list args; -- libgit2 0.21.2