mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan
--HG-- extra : rebase_source : 9335e9b4b0ac02e8066fbb79797bbc0d3fd73874
This commit is contained in:
parent
d025dae9ac
commit
de354c9745
@ -87,7 +87,7 @@ IsImmersiveProcessRunning(const wchar_t *processName)
|
|||||||
PROCESSENTRY32W entry;
|
PROCESSENTRY32W entry;
|
||||||
entry.dwSize = sizeof(PROCESSENTRY32W);
|
entry.dwSize = sizeof(PROCESSENTRY32W);
|
||||||
|
|
||||||
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);
|
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||||
|
|
||||||
if (Process32First(snapshot, &entry)) {
|
if (Process32First(snapshot, &entry)) {
|
||||||
while (!exists && Process32Next(snapshot, &entry)) {
|
while (!exists && Process32Next(snapshot, &entry)) {
|
||||||
|
@ -630,7 +630,8 @@ private:
|
|||||||
static HRESULT
|
static HRESULT
|
||||||
PrepareActivationManager(CComPtr<IApplicationActivationManager> &activateMgr)
|
PrepareActivationManager(CComPtr<IApplicationActivationManager> &activateMgr)
|
||||||
{
|
{
|
||||||
HRESULT hr = activateMgr.CoCreateInstance(CLSID_ApplicationActivationManager, NULL, CLSCTX_LOCAL_SERVER);
|
HRESULT hr = activateMgr.CoCreateInstance(CLSID_ApplicationActivationManager,
|
||||||
|
nullptr, CLSCTX_LOCAL_SERVER);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
Log(L"CoCreateInstance failed, launching on desktop.");
|
Log(L"CoCreateInstance failed, launching on desktop.");
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@ -654,7 +655,7 @@ DelayedExecuteThread(LPVOID param)
|
|||||||
bool &bRequestMet(*(bool*)param);
|
bool &bRequestMet(*(bool*)param);
|
||||||
AutoSetRequestMet asrm(&bRequestMet);
|
AutoSetRequestMet asrm(&bRequestMet);
|
||||||
|
|
||||||
CoInitialize(NULL);
|
CoInitialize(nullptr);
|
||||||
|
|
||||||
CComPtr<IApplicationActivationManager> activateMgr;
|
CComPtr<IApplicationActivationManager> activateMgr;
|
||||||
if (FAILED(PrepareActivationManager(activateMgr))) {
|
if (FAILED(PrepareActivationManager(activateMgr))) {
|
||||||
@ -698,7 +699,8 @@ IFACEMETHODIMP CExecuteCommandVerb::Execute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mIsRestartMetroRequest) {
|
if (mIsRestartMetroRequest) {
|
||||||
HANDLE thread = CreateThread(NULL, 0, DelayedExecuteThread, &mRequestMet, 0, NULL);
|
HANDLE thread = CreateThread(nullptr, 0, DelayedExecuteThread,
|
||||||
|
&mRequestMet, 0, nullptr);
|
||||||
CloseHandle(thread);
|
CloseHandle(thread);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ typedef struct ASFinderInfo
|
|||||||
static void append_file(FILE* output, const char* input_name)
|
static void append_file(FILE* output, const char* input_name)
|
||||||
{
|
{
|
||||||
FILE* input = fopen(input_name, "rb");
|
FILE* input = fopen(input_name, "rb");
|
||||||
EXIT_IF_FALSE(input != NULL);
|
EXIT_IF_FALSE(input != nullptr);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
@ -87,7 +87,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
FILE* output = fopen(argv[2], "wb");
|
FILE* output = fopen(argv[2], "wb");
|
||||||
if (output == NULL) {
|
if (output == nullptr) {
|
||||||
printf("%s: can't open file `%s'\n", argv[0], argv[2]);
|
printf("%s: can't open file `%s'\n", argv[0], argv[2]);
|
||||||
exit(5);
|
exit(5);
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ int main(int argc, char** argv)
|
|||||||
memset(&cat_info, 0, sizeof(cat_info));
|
memset(&cat_info, 0, sizeof(cat_info));
|
||||||
EXIT_IF_FALSE(FSGetCatalogInfo(&fsref,
|
EXIT_IF_FALSE(FSGetCatalogInfo(&fsref,
|
||||||
kFSCatInfoGettableInfo,
|
kFSCatInfoGettableInfo,
|
||||||
&cat_info, NULL, NULL, NULL) == 0);
|
&cat_info, nullptr, nullptr, nullptr) == 0);
|
||||||
|
|
||||||
ASFinderInfo finder_info;
|
ASFinderInfo finder_info;
|
||||||
memcpy(&finder_info.ioFlFndrInfo, &cat_info.finderInfo,
|
memcpy(&finder_info.ioFlFndrInfo, &cat_info.finderInfo,
|
||||||
|
@ -58,7 +58,7 @@ MessageLink::~MessageLink()
|
|||||||
|
|
||||||
ProcessLink::ProcessLink(MessageChannel *aChan)
|
ProcessLink::ProcessLink(MessageChannel *aChan)
|
||||||
: MessageLink(aChan),
|
: MessageLink(aChan),
|
||||||
mExistingListener(NULL)
|
mExistingListener(nullptr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ KeyStore::ResetHandlerInfo()
|
|||||||
mHandlerInfo.state = STATE_IDLE;
|
mHandlerInfo.state = STATE_IDLE;
|
||||||
mHandlerInfo.command = 0;
|
mHandlerInfo.command = 0;
|
||||||
mHandlerInfo.paramCount = 0;
|
mHandlerInfo.paramCount = 0;
|
||||||
mHandlerInfo.commandPattern = NULL;
|
mHandlerInfo.commandPattern = nullptr;
|
||||||
for (int i = 0; i < MAX_PARAM; i++) {
|
for (int i = 0; i < MAX_PARAM; i++) {
|
||||||
mHandlerInfo.param[i].length = 0;
|
mHandlerInfo.param[i].length = 0;
|
||||||
memset(mHandlerInfo.param[i].data, 0, VALUE_SIZE);
|
memset(mHandlerInfo.param[i].data, 0, VALUE_SIZE);
|
||||||
|
@ -984,7 +984,7 @@ mozJSComponentLoader::ObjectForLocation(nsIFile *aComponentFile,
|
|||||||
if (aPropagateExceptions)
|
if (aPropagateExceptions)
|
||||||
ContextOptionsRef(cx).setDontReportUncaught(true);
|
ContextOptionsRef(cx).setDontReportUncaught(true);
|
||||||
if (script) {
|
if (script) {
|
||||||
ok = JS_ExecuteScriptVersion(cx, obj, script, NULL, JSVERSION_LATEST);
|
ok = JS_ExecuteScriptVersion(cx, obj, script, nullptr, JSVERSION_LATEST);
|
||||||
} else {
|
} else {
|
||||||
jsval rval;
|
jsval rval;
|
||||||
ok = JS_CallFunction(cx, obj, function, 0, nullptr, &rval);
|
ok = JS_CallFunction(cx, obj, function, 0, nullptr, &rval);
|
||||||
|
@ -1099,7 +1099,7 @@ static const mozilla::Module::CIDEntry kLayoutCIDs[] = {
|
|||||||
{ &kTCPSOCKETPARENT_CID, false, nullptr, TCPSocketParentConstructor },
|
{ &kTCPSOCKETPARENT_CID, false, nullptr, TCPSocketParentConstructor },
|
||||||
{ &kTCPSERVERSOCKETCHILD_CID, false, nullptr, TCPServerSocketChildConstructor },
|
{ &kTCPSERVERSOCKETCHILD_CID, false, nullptr, TCPServerSocketChildConstructor },
|
||||||
{ &kNS_TIMESERVICE_CID, false, nullptr, nsITimeServiceConstructor },
|
{ &kNS_TIMESERVICE_CID, false, nullptr, nsITimeServiceConstructor },
|
||||||
{ &kNS_MEDIASTREAMCONTROLLERSERVICE_CID, false, NULL, nsIStreamingProtocolControllerServiceConstructor },
|
{ &kNS_MEDIASTREAMCONTROLLERSERVICE_CID, false, nullptr, nsIStreamingProtocolControllerServiceConstructor },
|
||||||
#ifdef MOZ_WIDGET_GONK
|
#ifdef MOZ_WIDGET_GONK
|
||||||
{ &kGONK_GPS_GEOLOCATION_PROVIDER_CID, false, nullptr, nsIGeolocationProviderConstructor },
|
{ &kGONK_GPS_GEOLOCATION_PROVIDER_CID, false, nullptr, nsIGeolocationProviderConstructor },
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,7 +13,7 @@ using mozilla::dom::Link;
|
|||||||
|
|
||||||
NS_IMPL_ISUPPORTS2(nsAndroidHistory, IHistory, nsIRunnable)
|
NS_IMPL_ISUPPORTS2(nsAndroidHistory, IHistory, nsIRunnable)
|
||||||
|
|
||||||
nsAndroidHistory* nsAndroidHistory::sHistory = NULL;
|
nsAndroidHistory* nsAndroidHistory::sHistory = nullptr;
|
||||||
|
|
||||||
/*static*/
|
/*static*/
|
||||||
nsAndroidHistory*
|
nsAndroidHistory*
|
||||||
|
@ -23,11 +23,11 @@ NS_DEFINE_NAMED_CID(NS_ANDROIDHISTORY_CID);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
|
static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
|
||||||
{ &knsShellService_CID, false, NULL, nsShellServiceConstructor },
|
{ &knsShellService_CID, false, nullptr, nsShellServiceConstructor },
|
||||||
#ifdef MOZ_ANDROID_HISTORY
|
#ifdef MOZ_ANDROID_HISTORY
|
||||||
{ &kNS_ANDROIDHISTORY_CID, false, NULL, nsAndroidHistoryConstructor },
|
{ &kNS_ANDROIDHISTORY_CID, false, nullptr, nsAndroidHistoryConstructor },
|
||||||
#endif
|
#endif
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
|
static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
|
||||||
@ -35,7 +35,7 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
|
|||||||
#ifdef MOZ_ANDROID_HISTORY
|
#ifdef MOZ_ANDROID_HISTORY
|
||||||
{ NS_IHISTORY_CONTRACTID, &kNS_ANDROIDHISTORY_CID },
|
{ NS_IHISTORY_CONTRACTID, &kNS_ANDROIDHISTORY_CID },
|
||||||
#endif
|
#endif
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module kBrowserModule = {
|
static const mozilla::Module kBrowserModule = {
|
||||||
|
@ -936,7 +936,7 @@ static const mozilla::Module::CIDEntry kNeckoCIDs[] = {
|
|||||||
mozilla::net::WebSocketSSLChannelConstructor },
|
mozilla::net::WebSocketSSLChannelConstructor },
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_RTSP
|
#ifdef MOZ_RTSP
|
||||||
{ &kNS_RTSPPROTOCOLHANDLER_CID, false, NULL, mozilla::net::RtspHandlerConstructor },
|
{ &kNS_RTSPPROTOCOLHANDLER_CID, false, nullptr, mozilla::net::RtspHandlerConstructor },
|
||||||
#endif
|
#endif
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
{ &kNS_NETWORK_LINK_SERVICE_CID, false, nullptr, nsNotifyAddrListenerConstructor },
|
{ &kNS_NETWORK_LINK_SERVICE_CID, false, nullptr, nsNotifyAddrListenerConstructor },
|
||||||
|
@ -2716,7 +2716,7 @@ SpdySession31::RequestHead()
|
|||||||
MOZ_ASSERT(false,
|
MOZ_ASSERT(false,
|
||||||
"SpdySession31::RequestHead() "
|
"SpdySession31::RequestHead() "
|
||||||
"should not be called after SPDY is setup");
|
"should not be called after SPDY is setup");
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
|
@ -836,7 +836,7 @@ Connection::internalClose()
|
|||||||
if (srv == SQLITE_BUSY) {
|
if (srv == SQLITE_BUSY) {
|
||||||
// We still have non-finalized statements. Finalize them.
|
// We still have non-finalized statements. Finalize them.
|
||||||
|
|
||||||
sqlite3_stmt *stmt = NULL;
|
sqlite3_stmt *stmt = nullptr;
|
||||||
while ((stmt = ::sqlite3_next_stmt(mDBConn, stmt))) {
|
while ((stmt = ::sqlite3_next_stmt(mDBConn, stmt))) {
|
||||||
PR_LOG(gStorageLog, PR_LOG_NOTICE,
|
PR_LOG(gStorageLog, PR_LOG_NOTICE,
|
||||||
("Auto-finalizing SQL statement '%s' (%x)",
|
("Auto-finalizing SQL statement '%s' (%x)",
|
||||||
@ -866,7 +866,7 @@ Connection::internalClose()
|
|||||||
// Ensure that the loop continues properly, whether closing has succeeded
|
// Ensure that the loop continues properly, whether closing has succeeded
|
||||||
// or not.
|
// or not.
|
||||||
if (srv == SQLITE_OK) {
|
if (srv == SQLITE_OK) {
|
||||||
stmt = NULL;
|
stmt = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ static const mozilla::Module::CIDEntry kToolkitCIDs[] = {
|
|||||||
#if defined(USE_MOZ_UPDATER)
|
#if defined(USE_MOZ_UPDATER)
|
||||||
{ &kNS_UPDATEPROCESSOR_CID, false, nullptr, nsUpdateProcessorConstructor },
|
{ &kNS_UPDATEPROCESSOR_CID, false, nullptr, nsUpdateProcessorConstructor },
|
||||||
#endif
|
#endif
|
||||||
{ &kFINALIZATIONWITNESSSERVICE_CID, false, NULL, FinalizationWitnessServiceConstructor },
|
{ &kFINALIZATIONWITNESSSERVICE_CID, false, nullptr, FinalizationWitnessServiceConstructor },
|
||||||
{ nullptr }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#define NS_CONTENTHANDLER_CID \
|
#define NS_CONTENTHANDLER_CID \
|
||||||
{ 0x43ec2c82, 0xb9db, 0x4835, {0x80, 0x3f, 0x64, 0xc9, 0x72, 0x5a, 0x70, 0x28 } }
|
{ 0x43ec2c82, 0xb9db, 0x4835, {0x80, 0x3f, 0x64, 0xc9, 0x72, 0x5a, 0x70, 0x28 } }
|
||||||
|
|
||||||
NS_IMPL_CLASSINFO(nsContentHandlerApp, NULL, 0, NS_CONTENTHANDLER_CID)
|
NS_IMPL_CLASSINFO(nsContentHandlerApp, nullptr, 0, NS_CONTENTHANDLER_CID)
|
||||||
NS_IMPL_ISUPPORTS1_CI(nsContentHandlerApp, nsIHandlerApp)
|
NS_IMPL_ISUPPORTS1_CI(nsContentHandlerApp, nsIHandlerApp)
|
||||||
|
|
||||||
nsContentHandlerApp::nsContentHandlerApp(nsString aName, nsCString aType,
|
nsContentHandlerApp::nsContentHandlerApp(nsString aName, nsCString aType,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
// XXX why does nsMIMEInfoImpl have a threadsafe nsISupports? do we need one
|
// XXX why does nsMIMEInfoImpl have a threadsafe nsISupports? do we need one
|
||||||
// here too?
|
// here too?
|
||||||
NS_IMPL_CLASSINFO(nsDBusHandlerApp, NULL, 0, NS_DBUSHANDLERAPP_CID)
|
NS_IMPL_CLASSINFO(nsDBusHandlerApp, nullptr, 0, NS_DBUSHANDLERAPP_CID)
|
||||||
NS_IMPL_ISUPPORTS2_CI(nsDBusHandlerApp, nsIDBusHandlerApp, nsIHandlerApp)
|
NS_IMPL_ISUPPORTS2_CI(nsDBusHandlerApp, nsIDBusHandlerApp, nsIHandlerApp)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -112,12 +112,12 @@ nsDBusHandlerApp::LaunchWithURI(nsIURI *aURI,
|
|||||||
dbus_message_iter_init_append(msg, &iter);
|
dbus_message_iter_init_append(msg, &iter);
|
||||||
dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &uri);
|
dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &uri);
|
||||||
|
|
||||||
if (dbus_connection_send(connection, msg, NULL)) {
|
if (dbus_connection_send(connection, msg, nullptr)) {
|
||||||
dbus_connection_flush(connection);
|
dbus_connection_flush(connection);
|
||||||
dbus_message_unref(msg);
|
dbus_message_unref(msg);
|
||||||
} else {
|
} else {
|
||||||
dbus_message_unref(msg);
|
dbus_message_unref(msg);
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
|
@ -97,11 +97,11 @@ nsMIMEInfoWin::LaunchWithFile(nsIFile* aFile)
|
|||||||
memset(&seinfo, 0, sizeof(seinfo));
|
memset(&seinfo, 0, sizeof(seinfo));
|
||||||
seinfo.cbSize = sizeof(SHELLEXECUTEINFOW);
|
seinfo.cbSize = sizeof(SHELLEXECUTEINFOW);
|
||||||
seinfo.fMask = 0;
|
seinfo.fMask = 0;
|
||||||
seinfo.hwnd = NULL;
|
seinfo.hwnd = nullptr;
|
||||||
seinfo.lpVerb = NULL;
|
seinfo.lpVerb = nullptr;
|
||||||
seinfo.lpFile = rundll32Path;
|
seinfo.lpFile = rundll32Path;
|
||||||
seinfo.lpParameters = args.get();
|
seinfo.lpParameters = args.get();
|
||||||
seinfo.lpDirectory = NULL;
|
seinfo.lpDirectory = nullptr;
|
||||||
seinfo.nShow = SW_SHOWNORMAL;
|
seinfo.nShow = SW_SHOWNORMAL;
|
||||||
if (ShellExecuteExW(&seinfo))
|
if (ShellExecuteExW(&seinfo))
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
@ -246,15 +246,16 @@ nsMIMEInfoWin::LoadUriInternal(nsIURI * aURL)
|
|||||||
sinfo.cbSize = sizeof(sinfo);
|
sinfo.cbSize = sizeof(sinfo);
|
||||||
sinfo.fMask = SEE_MASK_FLAG_DDEWAIT |
|
sinfo.fMask = SEE_MASK_FLAG_DDEWAIT |
|
||||||
SEE_MASK_FLAG_NO_UI;
|
SEE_MASK_FLAG_NO_UI;
|
||||||
sinfo.hwnd = NULL;
|
sinfo.hwnd = nullptr;
|
||||||
sinfo.lpVerb = (LPWSTR)&cmdVerb;
|
sinfo.lpVerb = (LPWSTR)&cmdVerb;
|
||||||
sinfo.nShow = SW_SHOWNORMAL;
|
sinfo.nShow = SW_SHOWNORMAL;
|
||||||
|
|
||||||
LPITEMIDLIST pidl = NULL;
|
LPITEMIDLIST pidl = nullptr;
|
||||||
SFGAOF sfgao;
|
SFGAOF sfgao;
|
||||||
|
|
||||||
// Bug 394974
|
// Bug 394974
|
||||||
if (SUCCEEDED(SHParseDisplayName(utf16Spec.get(),NULL, &pidl, 0, &sfgao))) {
|
if (SUCCEEDED(SHParseDisplayName(utf16Spec.get(), nullptr,
|
||||||
|
&pidl, 0, &sfgao))) {
|
||||||
sinfo.lpIDList = pidl;
|
sinfo.lpIDList = pidl;
|
||||||
sinfo.fMask |= SEE_MASK_INVOKEIDLIST;
|
sinfo.fMask |= SEE_MASK_INVOKEIDLIST;
|
||||||
} else {
|
} else {
|
||||||
@ -513,7 +514,7 @@ void nsMIMEInfoWin::ProcessPath(nsCOMPtr<nsIMutableArray>& appList,
|
|||||||
|
|
||||||
// Don't include firefox.exe in the list
|
// Don't include firefox.exe in the list
|
||||||
WCHAR exe[MAX_PATH+1];
|
WCHAR exe[MAX_PATH+1];
|
||||||
uint32_t len = GetModuleFileNameW(NULL, exe, MAX_PATH);
|
uint32_t len = GetModuleFileNameW(nullptr, exe, MAX_PATH);
|
||||||
if (len < MAX_PATH && len != 0) {
|
if (len < MAX_PATH && len != 0) {
|
||||||
uint32_t index = lower.Find(exe);
|
uint32_t index = lower.Find(exe);
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
|
@ -35,9 +35,10 @@ nsOSHelperAppService::nsOSHelperAppService() :
|
|||||||
nsExternalHelperAppService()
|
nsExternalHelperAppService()
|
||||||
, mAppAssoc(nullptr)
|
, mAppAssoc(nullptr)
|
||||||
{
|
{
|
||||||
CoInitialize(NULL);
|
CoInitialize(nullptr);
|
||||||
CoCreateInstance(CLSID_ApplicationAssociationRegistration, NULL, CLSCTX_INPROC,
|
CoCreateInstance(CLSID_ApplicationAssociationRegistration, nullptr,
|
||||||
IID_IApplicationAssociationRegistration, (void**)&mAppAssoc);
|
CLSCTX_INPROC, IID_IApplicationAssociationRegistration,
|
||||||
|
(void**)&mAppAssoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsOSHelperAppService::~nsOSHelperAppService()
|
nsOSHelperAppService::~nsOSHelperAppService()
|
||||||
@ -141,7 +142,8 @@ nsresult nsOSHelperAppService::OSProtocolHandlerExists(const char * aProtocolSch
|
|||||||
&hKey);
|
&hKey);
|
||||||
if (err == ERROR_SUCCESS)
|
if (err == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
err = ::RegQueryValueExW(hKey, L"URL Protocol", NULL, NULL, NULL, NULL);
|
err = ::RegQueryValueExW(hKey, L"URL Protocol",
|
||||||
|
nullptr, nullptr, nullptr, nullptr);
|
||||||
*aHandlerExists = (err == ERROR_SUCCESS);
|
*aHandlerExists = (err == ERROR_SUCCESS);
|
||||||
// close the key
|
// close the key
|
||||||
::RegCloseKey(hKey);
|
::RegCloseKey(hKey);
|
||||||
|
@ -1331,7 +1331,7 @@ nsOfflineCacheUpdate::Init(nsIURI *aManifestURI,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aDocumentURI,
|
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aDocumentURI,
|
||||||
NULL,
|
nullptr,
|
||||||
&mPinned);
|
&mPinned);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
@ -1383,7 +1383,7 @@ nsOfflineCacheUpdate::InitForUpdateCheck(nsIURI *aManifestURI,
|
|||||||
mApplicationCache = mPreviousApplicationCache;
|
mApplicationCache = mPreviousApplicationCache;
|
||||||
|
|
||||||
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aManifestURI,
|
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aManifestURI,
|
||||||
NULL,
|
nullptr,
|
||||||
&mPinned);
|
&mPinned);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
@ -1442,7 +1442,7 @@ nsOfflineCacheUpdate::InitPartial(nsIURI *aManifestURI,
|
|||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aDocumentURI,
|
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(aDocumentURI,
|
||||||
NULL,
|
nullptr,
|
||||||
&mPinned);
|
&mPinned);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
@ -2191,7 +2191,7 @@ EvictOneOfCacheGroups(nsIApplicationCacheService *cacheService,
|
|||||||
|
|
||||||
bool pinned;
|
bool pinned;
|
||||||
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(uri,
|
rv = nsOfflineCacheUpdateService::OfflineAppPinnedForURI(uri,
|
||||||
NULL,
|
nullptr,
|
||||||
&pinned);
|
&pinned);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ void ErrorDialog(const char* message)
|
|||||||
{
|
{
|
||||||
gtk_init(pargc, pargv);
|
gtk_init(pargc, pargv);
|
||||||
|
|
||||||
GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", message);
|
GtkWidget* dialog = gtk_message_dialog_new(nullptr, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", message);
|
||||||
gtk_window_set_title(GTK_WINDOW(dialog), "Error launching webapp");
|
gtk_window_set_title(GTK_WINDOW(dialog), "Error launching webapp");
|
||||||
gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), false);
|
gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), false);
|
||||||
gtk_dialog_run(GTK_DIALOG(dialog));
|
gtk_dialog_run(GTK_DIALOG(dialog));
|
||||||
@ -275,7 +275,7 @@ void RemoveApplication(nsINIParser& parser, const char* curExeDir, const char* p
|
|||||||
* The only difference between libnotify.so.4 and libnotify.so.1 for these symbols
|
* The only difference between libnotify.so.4 and libnotify.so.1 for these symbols
|
||||||
* is that notify_notification_new takes three arguments in libnotify.so.4 and
|
* is that notify_notification_new takes three arguments in libnotify.so.4 and
|
||||||
* four in libnotify.so.1.
|
* four in libnotify.so.1.
|
||||||
* Passing the fourth argument as NULL is binary compatible.
|
* Passing the fourth argument as nullptr is binary compatible.
|
||||||
*/
|
*/
|
||||||
typedef void (*notify_init_t)(const char*);
|
typedef void (*notify_init_t)(const char*);
|
||||||
typedef void* (*notify_notification_new_t)(const char*, const char*, const char*, const char*);
|
typedef void* (*notify_notification_new_t)(const char*, const char*, const char*, const char*);
|
||||||
@ -298,9 +298,9 @@ void RemoveApplication(nsINIParser& parser, const char* curExeDir, const char* p
|
|||||||
|
|
||||||
nn_init(appName);
|
nn_init(appName);
|
||||||
|
|
||||||
void* n = nn_new(uninstallMsg, NULL, "dialog-information", NULL);
|
void* n = nn_new(uninstallMsg, nullptr, "dialog-information", nullptr);
|
||||||
|
|
||||||
nn_show(n, NULL);
|
nn_show(n, nullptr);
|
||||||
|
|
||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScopedXREAppData()
|
ScopedXREAppData()
|
||||||
: mAppData(NULL) { }
|
: mAppData(nullptr) { }
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
create(nsIFile* aINIFile)
|
create(nsIFile* aINIFile)
|
||||||
@ -99,7 +99,7 @@ namespace {
|
|||||||
|
|
||||||
~ScopedXREAppData()
|
~ScopedXREAppData()
|
||||||
{
|
{
|
||||||
if (NULL != mAppData) {
|
if (nullptr != mAppData) {
|
||||||
XRE_FreeAppData(mAppData);
|
XRE_FreeAppData(mAppData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ namespace {
|
|||||||
wchar_t msg[1024];
|
wchar_t msg[1024];
|
||||||
_vsnwprintf_s(msg, _countof(msg), _countof(msg), fmt, ap);
|
_vsnwprintf_s(msg, _countof(msg), _countof(msg), fmt, ap);
|
||||||
|
|
||||||
MessageBoxW(NULL, msg, L"Web Runtime", MB_OK);
|
MessageBoxW(nullptr, msg, L"Web Runtime", MB_OK);
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
@ -199,13 +199,13 @@ namespace {
|
|||||||
::ZeroMemory(&pi, sizeof(pi));
|
::ZeroMemory(&pi, sizeof(pi));
|
||||||
|
|
||||||
if (!CreateProcessW(curExePath, // Module name
|
if (!CreateProcessW(curExePath, // Module name
|
||||||
NULL, // Command line
|
nullptr, // Command line
|
||||||
NULL, // Process handle not inheritable
|
nullptr, // Process handle not inheritable
|
||||||
NULL, // Thread handle not inheritable
|
nullptr, // Thread handle not inheritable
|
||||||
FALSE, // Set handle inheritance to FALSE
|
FALSE, // Set handle inheritance to FALSE
|
||||||
0, // No creation flags
|
0, // No creation flags
|
||||||
NULL, // Use parent's environment block
|
nullptr, // Use parent's environment block
|
||||||
NULL, // Use parent's starting directory
|
nullptr, // Use parent's starting directory
|
||||||
&si,
|
&si,
|
||||||
&pi)) {
|
&pi)) {
|
||||||
return false;
|
return false;
|
||||||
@ -358,8 +358,8 @@ namespace {
|
|||||||
// RegGetValue instead
|
// RegGetValue instead
|
||||||
if (ERROR_SUCCESS != RegQueryValueExW(key,
|
if (ERROR_SUCCESS != RegQueryValueExW(key,
|
||||||
L"Path",
|
L"Path",
|
||||||
NULL,
|
nullptr,
|
||||||
NULL,
|
nullptr,
|
||||||
reinterpret_cast<BYTE*>(wideGreDir),
|
reinterpret_cast<BYTE*>(wideGreDir),
|
||||||
&length)) {
|
&length)) {
|
||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
@ -383,8 +383,8 @@ namespace {
|
|||||||
-1,
|
-1,
|
||||||
firefoxDir,
|
firefoxDir,
|
||||||
MAXPATHLEN,
|
MAXPATHLEN,
|
||||||
NULL,
|
nullptr,
|
||||||
NULL)) {
|
nullptr)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -438,8 +438,8 @@ main(int argc, char* argv[])
|
|||||||
-1,
|
-1,
|
||||||
buffer,
|
buffer,
|
||||||
MAXPATHLEN,
|
MAXPATHLEN,
|
||||||
NULL,
|
nullptr,
|
||||||
NULL)) {
|
nullptr)) {
|
||||||
Output("Application directory could not be processed.");
|
Output("Application directory could not be processed.");
|
||||||
return 255;
|
return 255;
|
||||||
}
|
}
|
||||||
|
@ -20,15 +20,15 @@ NS_DEFINE_NAMED_CID(NS_APPSHELLSERVICE_CID);
|
|||||||
NS_DEFINE_NAMED_CID(NS_WINDOWMEDIATOR_CID);
|
NS_DEFINE_NAMED_CID(NS_WINDOWMEDIATOR_CID);
|
||||||
|
|
||||||
static const mozilla::Module::CIDEntry kAppShellCIDs[] = {
|
static const mozilla::Module::CIDEntry kAppShellCIDs[] = {
|
||||||
{ &kNS_APPSHELLSERVICE_CID, false, NULL, nsAppShellServiceConstructor },
|
{ &kNS_APPSHELLSERVICE_CID, false, nullptr, nsAppShellServiceConstructor },
|
||||||
{ &kNS_WINDOWMEDIATOR_CID, false, NULL, nsWindowMediatorConstructor },
|
{ &kNS_WINDOWMEDIATOR_CID, false, nullptr, nsWindowMediatorConstructor },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::ContractIDEntry kAppShellContracts[] = {
|
static const mozilla::Module::ContractIDEntry kAppShellContracts[] = {
|
||||||
{ NS_APPSHELLSERVICE_CONTRACTID, &kNS_APPSHELLSERVICE_CID },
|
{ NS_APPSHELLSERVICE_CONTRACTID, &kNS_APPSHELLSERVICE_CID },
|
||||||
{ NS_WINDOWMEDIATOR_CONTRACTID, &kNS_WINDOWMEDIATOR_CID },
|
{ NS_WINDOWMEDIATOR_CONTRACTID, &kNS_WINDOWMEDIATOR_CID },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static nsresult
|
static nsresult
|
||||||
@ -47,8 +47,8 @@ static const mozilla::Module kAppShellModule = {
|
|||||||
mozilla::Module::kVersion,
|
mozilla::Module::kVersion,
|
||||||
kAppShellCIDs,
|
kAppShellCIDs,
|
||||||
kAppShellContracts,
|
kAppShellContracts,
|
||||||
NULL,
|
nullptr,
|
||||||
NULL,
|
nullptr,
|
||||||
nsAppShellModuleConstructor,
|
nsAppShellModuleConstructor,
|
||||||
nsAppShellModuleDestructor
|
nsAppShellModuleDestructor
|
||||||
};
|
};
|
||||||
|
@ -18,21 +18,21 @@ NS_DEFINE_NAMED_CID(NS_DIRECTORYVIEWERFACTORY_CID);
|
|||||||
NS_DEFINE_NAMED_CID(NS_HTTPINDEX_SERVICE_CID);
|
NS_DEFINE_NAMED_CID(NS_HTTPINDEX_SERVICE_CID);
|
||||||
|
|
||||||
static const mozilla::Module::CIDEntry kXPFECIDs[] = {
|
static const mozilla::Module::CIDEntry kXPFECIDs[] = {
|
||||||
{ &kNS_DIRECTORYVIEWERFACTORY_CID, false, NULL, nsDirectoryViewerFactoryConstructor },
|
{ &kNS_DIRECTORYVIEWERFACTORY_CID, false, nullptr, nsDirectoryViewerFactoryConstructor },
|
||||||
{ &kNS_HTTPINDEX_SERVICE_CID, false, NULL, nsHTTPIndexConstructor },
|
{ &kNS_HTTPINDEX_SERVICE_CID, false, nullptr, nsHTTPIndexConstructor },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::ContractIDEntry kXPFEContracts[] = {
|
static const mozilla::Module::ContractIDEntry kXPFEContracts[] = {
|
||||||
{ "@mozilla.org/xpfe/http-index-format-factory-constructor", &kNS_DIRECTORYVIEWERFACTORY_CID },
|
{ "@mozilla.org/xpfe/http-index-format-factory-constructor", &kNS_DIRECTORYVIEWERFACTORY_CID },
|
||||||
{ NS_HTTPINDEX_SERVICE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID },
|
{ NS_HTTPINDEX_SERVICE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID },
|
||||||
{ NS_HTTPINDEX_DATASOURCE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID },
|
{ NS_HTTPINDEX_DATASOURCE_CONTRACTID, &kNS_HTTPINDEX_SERVICE_CID },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::CategoryEntry kXPFECategories[] = {
|
static const mozilla::Module::CategoryEntry kXPFECategories[] = {
|
||||||
{ "Gecko-Content-Viewers", "application/http-index-format", "@mozilla.org/xpfe/http-index-format-factory-constructor" },
|
{ "Gecko-Content-Viewers", "application/http-index-format", "@mozilla.org/xpfe/http-index-format-factory-constructor" },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module kXPFEModule = {
|
static const mozilla::Module kXPFEModule = {
|
||||||
|
@ -355,7 +355,7 @@ NS_IMETHODIMP nsWindowDataSource::GetTarget(nsIRDFResource *aSource, nsIRDFResou
|
|||||||
{
|
{
|
||||||
NS_ENSURE_ARG_POINTER(_retval);
|
NS_ENSURE_ARG_POINTER(_retval);
|
||||||
|
|
||||||
// add extra NULL checking for top-crash bug # 146466
|
// add extra nullptr checking for top-crash bug # 146466
|
||||||
if (!gRDFService) return NS_RDF_NO_VALUE;
|
if (!gRDFService) return NS_RDF_NO_VALUE;
|
||||||
if (!mInner) return NS_RDF_NO_VALUE;
|
if (!mInner) return NS_RDF_NO_VALUE;
|
||||||
if (!mContainer) return NS_RDF_NO_VALUE;
|
if (!mContainer) return NS_RDF_NO_VALUE;
|
||||||
@ -548,18 +548,18 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWindowDataSource, Init)
|
|||||||
NS_DEFINE_NAMED_CID(NS_WINDOWDATASOURCE_CID);
|
NS_DEFINE_NAMED_CID(NS_WINDOWDATASOURCE_CID);
|
||||||
|
|
||||||
static const mozilla::Module::CIDEntry kWindowDSCIDs[] = {
|
static const mozilla::Module::CIDEntry kWindowDSCIDs[] = {
|
||||||
{ &kNS_WINDOWDATASOURCE_CID, false, NULL, nsWindowDataSourceConstructor },
|
{ &kNS_WINDOWDATASOURCE_CID, false, nullptr, nsWindowDataSourceConstructor },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::ContractIDEntry kWindowDSContracts[] = {
|
static const mozilla::Module::ContractIDEntry kWindowDSContracts[] = {
|
||||||
{ NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator", &kNS_WINDOWDATASOURCE_CID },
|
{ NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator", &kNS_WINDOWDATASOURCE_CID },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::CategoryEntry kWindowDSCategories[] = {
|
static const mozilla::Module::CategoryEntry kWindowDSCategories[] = {
|
||||||
{ "app-startup", "Window Data Source", "service," NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator" },
|
{ "app-startup", "Window Data Source", "service," NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator" },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module kWindowDSModule = {
|
static const mozilla::Module kWindowDSModule = {
|
||||||
|
@ -59,7 +59,7 @@ static void Output(bool isError, const char *fmt, ... )
|
|||||||
else
|
else
|
||||||
flags |= MB_ICONINFORMATION;
|
flags |= MB_ICONINFORMATION;
|
||||||
|
|
||||||
MessageBoxW(NULL, msg, L"XULRunner", flags);
|
MessageBoxW(nullptr, msg, L"XULRunner", flags);
|
||||||
#else
|
#else
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,13 +35,13 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(SimpleTest)
|
|||||||
NS_DEFINE_NAMED_CID(SIMPLETEST_CID);
|
NS_DEFINE_NAMED_CID(SIMPLETEST_CID);
|
||||||
|
|
||||||
static const mozilla::Module::CIDEntry kSimpleCIDs[] = {
|
static const mozilla::Module::CIDEntry kSimpleCIDs[] = {
|
||||||
{ &kSIMPLETEST_CID, false, NULL, SimpleTestConstructor },
|
{ &kSIMPLETEST_CID, false, nullptr, SimpleTestConstructor },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module::ContractIDEntry kSimpleContracts[] = {
|
static const mozilla::Module::ContractIDEntry kSimpleContracts[] = {
|
||||||
{ "@test.mozilla.org/simple-test;1?impl=c++", &kSIMPLETEST_CID },
|
{ "@test.mozilla.org/simple-test;1?impl=c++", &kSIMPLETEST_CID },
|
||||||
{ NULL }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const mozilla::Module kSimpleModule = {
|
static const mozilla::Module kSimpleModule = {
|
||||||
|
@ -71,7 +71,7 @@ static void Output(bool isError, const char *fmt, ... )
|
|||||||
wide_msg,
|
wide_msg,
|
||||||
sizeof(wide_msg) / sizeof(wchar_t));
|
sizeof(wide_msg) / sizeof(wchar_t));
|
||||||
|
|
||||||
MessageBoxW(NULL, wide_msg, L"XULRunner", flags);
|
MessageBoxW(nullptr, wide_msg, L"XULRunner", flags);
|
||||||
#else
|
#else
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
#endif
|
#endif
|
||||||
@ -205,11 +205,11 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
wchar_t wide_path[MAX_PATH];
|
wchar_t wide_path[MAX_PATH];
|
||||||
if (!::GetModuleFileNameW(NULL, wide_path, MAX_PATH))
|
if (!::GetModuleFileNameW(nullptr, wide_path, MAX_PATH))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
WideCharToMultiByte(CP_UTF8, 0, wide_path,-1,
|
WideCharToMultiByte(CP_UTF8, 0, wide_path,-1,
|
||||||
iniPath, MAX_PATH, NULL, NULL);
|
iniPath, MAX_PATH, nullptr, nullptr);
|
||||||
|
|
||||||
#elif defined(XP_OS2)
|
#elif defined(XP_OS2)
|
||||||
PPIB ppib;
|
PPIB ppib;
|
||||||
@ -254,7 +254,7 @@ main(int argc, char **argv)
|
|||||||
realpath(tmpPath, iniPath);
|
realpath(tmpPath, iniPath);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
token = strtok(NULL, ":");
|
token = strtok(nullptr, ":");
|
||||||
}
|
}
|
||||||
free (pathdup);
|
free (pathdup);
|
||||||
if (!found)
|
if (!found)
|
||||||
@ -360,13 +360,13 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
if (absfwurl) {
|
if (absfwurl) {
|
||||||
CFURLRef xulurl =
|
CFURLRef xulurl =
|
||||||
CFURLCreateCopyAppendingPathComponent(NULL, absfwurl,
|
CFURLCreateCopyAppendingPathComponent(nullptr, absfwurl,
|
||||||
CFSTR("XUL.framework"),
|
CFSTR("XUL.framework"),
|
||||||
true);
|
true);
|
||||||
|
|
||||||
if (xulurl) {
|
if (xulurl) {
|
||||||
CFURLRef xpcomurl =
|
CFURLRef xpcomurl =
|
||||||
CFURLCreateCopyAppendingPathComponent(NULL, xulurl,
|
CFURLCreateCopyAppendingPathComponent(nullptr, xulurl,
|
||||||
CFSTR("libxpcom.dylib"),
|
CFSTR("libxpcom.dylib"),
|
||||||
false);
|
false);
|
||||||
|
|
||||||
|
@ -85,9 +85,9 @@ namespace {
|
|||||||
struct ScopedResourceUpdateTraits
|
struct ScopedResourceUpdateTraits
|
||||||
{
|
{
|
||||||
typedef HANDLE type;
|
typedef HANDLE type;
|
||||||
static type empty() { return NULL; }
|
static type empty() { return nullptr; }
|
||||||
static void release(type handle) {
|
static void release(type handle) {
|
||||||
if(NULL != handle) {
|
if(nullptr != handle) {
|
||||||
EndUpdateResourceW(handle, TRUE); // Discard changes
|
EndUpdateResourceW(handle, TRUE); // Discard changes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ wmain(int argc, wchar_t** argv)
|
|||||||
|
|
||||||
// Open the target library for updating
|
// Open the target library for updating
|
||||||
ScopedResourceUpdate updateRes(BeginUpdateResourceW(argv[1], FALSE));
|
ScopedResourceUpdate updateRes(BeginUpdateResourceW(argv[1], FALSE));
|
||||||
if (NULL == updateRes) {
|
if (nullptr == updateRes) {
|
||||||
fprintf(stderr, "Unable to open library for modification.\n");
|
fprintf(stderr, "Unable to open library for modification.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user