VirtualBox

Changeset 102204 in vbox


Ignore:
Timestamp:
Nov 21, 2023 1:30:06 PM (12 months ago)
Author:
vboxsync
Message:

libs/xpcom/xpcom: Get rid of last PR_GetErrorText() usages which are not relevant anyway, bguref:10545

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/components/nsNativeComponentLoader.cpp

    r101987 r102204  
    4848
    4949#include "prmem.h"
    50 #include "prerror.h"
    5150#include "nsNativeComponentLoader.h"
    5251#include "nsComponentManager.h"
     
    116115            Log(("nsNativeComponentLoader: load FAILED\n"));
    117116
     117            /** @todo r=aeichner Get error information from RTLdr. */
    118118            char errorMsg[1024] = "<unknown; can't get error from NSPR>";
    119 
    120             if (PR_GetErrorTextLength() < (int) sizeof(errorMsg))
    121                 PR_GetErrorText(errorMsg);
    122 
    123119            DumpLoadError(dll, "GetFactory", errorMsg);
    124 
    125120            return NS_ERROR_FAILURE;
    126121        }
     
    345340    if (dll->Load() == PR_FALSE)
    346341    {
     342        /** @todo r=aeichner Get error text from RTLdr(). */
    347343        // Cannot load. Probably not a dll.
    348344        char errorMsg[1024] = "Cannot get error from nspr. Not enough memory.";
    349         if (PR_GetErrorTextLength() < (int) sizeof(errorMsg))
    350             PR_GetErrorText(errorMsg);
    351 
    352345        DumpLoadError(dll, "SelfRegisterDll", errorMsg);
    353 
    354346        return NS_ERROR_FAILURE;
    355347    }
  • trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFileUnix.cpp

    r102195 r102204  
    7373#include "nsNativeCharsetUtils.h"
    7474
    75 #include "prerror.h"
    76 #include "prerr.h"
    77 
    7875#include <iprt/err.h>
    7976#include <iprt/dir.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette