dwRet = GetCurrentDirectory(MAX_PATH, currentDir);
if (dwRet == 0) {
- LOG_INFO("GetCurrentDirectory failed (%d)\n", GetLastError());
+ LOG_ERROR("GetCurrentDirectory failed (%d)\n", GetLastError());
return;
}
if (dwRet > MAX_PATH) {
- LOG_INFO("Buffer too small; need %d charactors\n", dwRet);
+ LOG_ERROR("Buffer too small; need %d charactors\n", dwRet);
return;
}
LOG_INFO("Current directory : %s\n", currentDir);
if (!GetModuleFileName(NULL, modulePath, sizeof(modulePath))) {
- LOG_INFO("GetModuleFileName failed (%d)\n", GetLastError());
+ LOG_ERROR("GetModuleFileName failed (%d)\n", GetLastError());
return;
}
LOG_INFO("Module path : %s\n", modulePath);
}
if (!SetCurrentDirectory(modulePath)) {
- LOG_INFO("SetCurrentDirectory failed (%d)\n", GetLastError());
+ LOG_ERROR("SetCurrentDirectory failed (%d)\n", GetLastError());
return;
}
LOG_INFO("Set current directory to : %s\n", modulePath);