Fix windows build (nullptr instead of NULL when assigning to std::function)
Merge pull request #2795 from flaming0/sd-func-fix-win-build

Fix VS build (nullptr instead of NULL when assigning to std function)