if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) { return;
if (gAllocLog || gRefcntsLog) { fprintf(stdout, "### Loading symbols for %s\n", aLibraryName); fflush(stdout);  HANDLE myProcess = ::GetCurrentProcess(); BOOL ok = EnsureSymInitialized(); if (ok) { const char* baseName = aLibraryName;  PRInt32 len = strlen(aLibraryName); for (PRInt32 i = len - 1; i >= 0; i--) { if (aLibraryName[i] == '\\') { baseName = &aLibraryName[i + 1]; break; } } DWORD baseAddr = _SymLoadModule(myProcess, NULL, (char*)baseName, (char*)baseName, 0, 0); ok = (baseAddr != nsnull);
nsTraceRefcnt::LoadLibrarySymbols(const char* aLibraryName,                                  void* aLibrayHandle){#ifdef MOZ_TRACE_XPCOM_REFCNT#if defined(_WIN32) && defined(_M_IX86) /* Win32 x86 only */  InitTraceLog();  if (PR_LOG_TEST(gTraceRefcntLog,PR_LOG_DEBUG)) {    HANDLE myProcess = ::GetCurrentProcess();    if (!SymInitialize(myProcess, ".;..\\lib", TRUE)) {      return;    }    BOOL b = ::SymLoadModule(myProcess,                             NULL,                             (char*)aLibraryName,                             (char*)aLibraryName,                             0,                             0);//  DWORD lastError = 0;//  if (!b) lastError = ::GetLastError();//  printf("loading symbols for library %s => %s [%d]\n", aLibraryName,//         b ? "true" : "false", lastError);  }#endif#endif}