]> granicus.if.org Git - graphviz/commit
GDI+ plugin: [nfc] avoid directly modifying 'FileStream' refcount
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 27 Nov 2021 03:37:59 +0000 (19:37 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Dec 2021 02:59:16 +0000 (18:59 -0800)
commit784704d0e01dfd46a651deecc98a06afa9c67abb
treee6838c4fa68d377e11ee2b7574ba71b950697378
parentaa2effc2b8b0460061618b31f97ba50fd82133c0
GDI+ plugin: [nfc] avoid directly modifying 'FileStream' refcount

This change redirects all reference count modifications through `AddRef` instead
direction increments. Based on Microsoft sample implementation.¹

¹ https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms752876(v=vs.85)
plugin/gdiplus/FileStream.cpp