diff --git a/headless/Headless.vcxproj b/headless/Headless.vcxproj
index 29d26051d5..ec1d4b2e76 100644
--- a/headless/Headless.vcxproj
+++ b/headless/Headless.vcxproj
@@ -255,7 +255,7 @@
Console
true
- mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;%(AdditionalDependencies)
+ ole32.lib;mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
/ignore:4049 /ignore:4217 %(AdditionalOptions)
../ffmpeg/Windows/aarch64/lib
@@ -285,7 +285,7 @@
Console
true
- mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
+ ole32.lib;mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
/ignore:4049 /ignore:4217 %(AdditionalOptions)
../ffmpeg/Windows/arm/lib
@@ -323,7 +323,7 @@
false
true
/ignore:4049 /ignore:4217 %(AdditionalOptions)
- ../ffmpeg/Windows/x86/lib
+ ../ffmpeg/Windows/x86/lib;%(AdditionalLibraryDirectories)
../Windows/git-version-gen.cmd Headless
@@ -361,7 +361,7 @@
false
true
/ignore:4049 /ignore:4217 %(AdditionalOptions)
- ../ffmpeg/Windows/x86_64/lib
+ ../ffmpeg/Windows/x86_64/lib;%(AdditionalLibraryDirectories)
../Windows/git-version-gen.cmd Headless
@@ -393,9 +393,9 @@
true
true
true
- mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;%(AdditionalDependencies)
+ ole32.lib;mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
/ignore:4049 /ignore:4217 %(AdditionalOptions)
- ../ffmpeg/Windows/aarch64/lib
+ ../ffmpeg/Windows/aarch64/lib;%(AdditionalLibraryDirectories)
../Windows/git-version-gen.cmd Headless
@@ -427,9 +427,9 @@
true
true
true
- mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
+ ole32.lib;mf.lib;mfplat.lib;mfreadwrite.lib;mfuuid.lib;shlwapi.lib;Winmm.lib;Ws2_32.lib;dsound.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;comctl32.lib;d3d9.lib;dxguid.lib;shell32.lib;advapi32.lib;gdi32.lib;%(AdditionalDependencies)
/ignore:4049 /ignore:4217 %(AdditionalOptions)
- ../ffmpeg/Windows/arm/lib
+ ../ffmpeg/Windows/arm/lib;%(AdditionalLibraryDirectories)
../Windows/git-version-gen.cmd Headless