From 558ae5dc45687fc2cd78be493b4b17f98aa09692 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 9 May 2019 22:51:12 +1000 Subject: [PATCH] [c-host] dxgi: initialize option to NULL for consistancy --- VERSION | 2 +- c-host/platform/Windows/capture/DXGI/src/dxgi.c | 2 +- c-host/platform/Windows/capture/NVFBC/src/nvfbc.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 27bc12f4..cd2adfc9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-165-g247e92937c+1 \ No newline at end of file +a12-166-g83f63f4c42+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/src/dxgi.c b/c-host/platform/Windows/capture/DXGI/src/dxgi.c index b1bd6ad3..5be5e605 100644 --- a/c-host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/c-host/platform/Windows/capture/DXGI/src/dxgi.c @@ -123,7 +123,7 @@ static void dxgi_initOptions() .description = "The name of the adapter's output to capture", .value = { .type = OPTION_TYPE_STRING, - .v.x_string = 0 + .v.x_string = NULL }, .validator = NULL, .printHelp = NULL diff --git a/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c b/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c index 2ab0b133..e2cdafa5 100644 --- a/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -128,6 +128,7 @@ static bool nvfbc_create() static bool nvfbc_init(void * pointerShape, const unsigned int pointerSize) { + return false; this->stop = false; this->pointerShape = pointerShape; this->pointerSize = pointerSize;