Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopkornium18 <mail@popkornium18.de>2020-06-28 01:17:36 +0300
committerPopkornium18 <mail@popkornium18.de>2020-06-28 20:04:21 +0300
commitfd8386a20641fe521803e3d5bfddc9a79cb0fef2 (patch)
tree0e0878a138f6de0d5b29ac93befaf34a01e12ec5 /overlay/dxgi.cpp
parent2caae7960e3da0aac943c3eac82b55420c4a2721 (diff)
REFAC(overlay): replace NULL with nullptr
This changes all occurances of NULL in the overlay source dir to nullptr. Additionally explicit comparisons with NULL were removed.
Diffstat (limited to 'overlay/dxgi.cpp')
-rw-r--r--overlay/dxgi.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/overlay/dxgi.cpp b/overlay/dxgi.cpp
index 7b51550e5..f71da9165 100644
--- a/overlay/dxgi.cpp
+++ b/overlay/dxgi.cpp
@@ -38,7 +38,7 @@
#include "lib.h"
#include <dxgi.h>
-DXGIData *dxgi = NULL;
+DXGIData *dxgi = nullptr;
static bool bHooked = false;
static HardHook hhPresent;
@@ -143,11 +143,11 @@ void checkDXGIHook(bool preonly) {
/// @param hDXGI must be a valid module handle.
void hookDXGI(HMODULE hDXGI, bool preonly) {
wchar_t modulename[MODULEFILEPATH_BUFLEN];
- GetModuleFileNameW(NULL, modulename, ARRAY_NUM_ELEMENTS(modulename));
+ GetModuleFileNameW(nullptr, modulename, ARRAY_NUM_ELEMENTS(modulename));
ods("DXGI: hookDXGI in App '%ls'", modulename);
// Add a ref to ourselves; we do NOT want to get unloaded directly from this process.
- HMODULE hTempSelf = NULL;
+ HMODULE hTempSelf = nullptr;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, reinterpret_cast<LPCTSTR>(&hookDXGI), &hTempSelf);
bHooked = true;
@@ -199,7 +199,7 @@ extern "C" __declspec(dllexport) void __cdecl PrepareDXGI() {
HMODULE hDXGI = LoadLibrary("DXGI.DLL");
- if (hDXGI != NULL) {
+ if (hDXGI) {
GetModuleFileNameW(hDXGI, dxgi->wcFileName, ARRAY_NUM_ELEMENTS(dxgi->wcFileName));
CreateDXGIFactory1Type pCreateDXGIFactory1 = reinterpret_cast<CreateDXGIFactory1Type>(GetProcAddress(hDXGI, "CreateDXGIFactory1"));
@@ -210,7 +210,7 @@ extern "C" __declspec(dllexport) void __cdecl PrepareDXGI() {
if (FAILED(hr))
ods("DXGI: Call to pCreateDXGIFactory1 failed!");
if (pFactory) {
- IDXGIAdapter1 *pAdapter = NULL;
+ IDXGIAdapter1 *pAdapter = nullptr;
pFactory->EnumAdapters1(0, &pAdapter);
/// Offsets have to be identified and initialized only once.