Facebook
From Crimson Hedgehog, 5 Years ago, written in Diff-output.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 1557
  1. --- a/host/Capture/NvFBC.cpp
  2. +++ b/host/Capture/NvFBC.cpp
  3. @@ -119,12 +119,20 @@ bool NvFBC::Initialize(CaptureOptions * options)
  4.      return false;
  5.    }
  6.  
  7. +  // Secret password that enables NvFBC for GeForce cards. Use of
  8. +  // NvFBC requires that you install the NVIDIA Capture SDK and run
  9. +  // NvFBCEnable.exe -enable in an elevated cmd:
  10. +  // C:\Program Files (x86)\NVIDIA Corporation\NVIDIA Capture SDK\bin\NvFBCEnable.exe -enable
  11. +  int magic[] = { 0x0D7BC620, 0x4C17E142, 0x5E6B5997, 0x4B5A855B };
  12. +
  13.    NvFBCCreateParams params;
  14.    ZeroMemory(&params, sizeof(NvFBCCreateParams));
  15.    params.dwVersion       = NVFBC_CREATE_PARAMS_VER;
  16.    params.dwInterfaceType = NVFBC_TO_SYS;
  17.    params.pDevice         = NULL;
  18.    params.dwAdapterIdx    = 0;
  19. +  params.pPrivateData      = &magic;
  20. +  params.dwPrivateDataSize = sizeof(magic);
  21.  
  22.    if (m_fnCreateEx(&params) != NVFBC_SUCCESS)
  23.    {
  24.