Skip to content
Snippets Groups Projects
Commit b5f32340 authored by D-AIRY's avatar D-AIRY
Browse files

Error code report

parent 2f16a738
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment