Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • dav1d dav1d
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • dav1ddav1d
  • Merge requests
  • !1199

Only call GetModuleHandle and AddVectoredExceptionHandler when targeting Windows Desktop

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Storsjö requested to merge mstorsjo/dav1d:uwp into master May 12, 2021
  • Overview 5
  • Commits 1
  • Pipelines 2
  • Changes 2

Don't call them when targeting e.g. UWP.

This requires building with a new enough SDK that does have the winapifamily.h header (and that it's included implicitly by regular platform headers); it's been available since the Windows 8.0 SDK (and since mingw-w64 v3.0.0) so it should be safe.

Also rewrite the GetProcAddress call to avoid calling it if GetModuleHandleW(L"kernel32.dll") would return NULL for some reason.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: uwp

VideoLAN code repository instance