diff --git a/host/platform/Windows/capture/D12/d12.c b/host/platform/Windows/capture/D12/d12.c index 69d626a58..e2f7f0cad 100644 --- a/host/platform/Windows/capture/D12/d12.c +++ b/host/platform/Windows/capture/D12/d12.c @@ -495,10 +495,9 @@ static CaptureResult d12_waitFrame(unsigned frameBufferIndex, { // create a clean list of rects - FrameDamageRect allRects[this->nbDirtyRects]; + FrameDamageRect allRects[nbDirtyRects]; unsigned count = 0; - for(const RECT * rect = this->dirtyRects; - rect < this->dirtyRects + this->nbDirtyRects; ++rect) + for(const RECT * rect = dirtyRects; rect < dirtyRects + nbDirtyRects; ++rect) allRects[count++] = (FrameDamageRect){ .x = rect->left, .y = rect->top,