diff --git a/source/gcore/gcore_utils.cpp b/source/gcore/gcore_utils.cpp index e594b03b9cf42eb4a665b73b43cbc7ee6cc20476..8b5a43b141c76535d8844f084680d06aacb5db46 100644 --- a/source/gcore/gcore_utils.cpp +++ b/source/gcore/gcore_utils.cpp @@ -35,7 +35,7 @@ void InitDevice(SXWINDOW hWnd, int iWidth, int iHeight, bool isWindowed) m_hLibGXAPI = LoadLibrary(szModuleName); if(!m_hLibGXAPI) { - LibReport(REPORT_MSG_LEVEL_FATAL, "%s - unable to load GX: %s\n", GEN_MSG_LOCATION, szModuleName); + LibReport(REPORT_MSG_LEVEL_FATAL, "%s - unable to load GX: %s; Error: %lu\n", GEN_MSG_LOCATION, szModuleName, GetLastError()); return; } @@ -43,7 +43,7 @@ void InitDevice(SXWINDOW hWnd, int iWidth, int iHeight, bool isWindowed) libGXGetInstance = (IGXDevice*(*)())GetProcAddress(m_hLibGXAPI, "GetInstance"); if(!libGXGetInstance) { - LibReport(REPORT_MSG_LEVEL_FATAL, "%s - %s: Not a GX module!\n", GEN_MSG_LOCATION, szModuleName); + LibReport(REPORT_MSG_LEVEL_FATAL, "%s - %s: Not a GX module!; Error: %lu\n", GEN_MSG_LOCATION, szModuleName, GetLastError()); return; }