HRESULT CCOpenDebugLog(PCWSTR wszFileName) { CCString s = wszFileName; if(s.Path_IsRelative() == TRUE) { GetModuleFileName(NULL, s.GetBuffer(MAX_PATH), MAX_PATH); s.Path_StripToPath(); s.Path_Append(wszFileName); } __g_bLogOpened = TRUE; return __g_Log.SetFile(s); }