Skip to content

Commit 63dd9d1

Browse files
Sibraslu-zero
authored andcommitted
Use _wfopen to support Windows XP.
Fixes #38, #9.
1 parent 9218e24 commit 63dd9d1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/mfx_plugin_hive.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ MFX::MFXPluginsInFS::MFXPluginsInFS( mfxVersion currentAPIVersion )
307307
msdk_disp_char_cpy_s(currentModuleName + executableDirLen + pluginDirNameLen + slashLen
308308
, MAX_PLUGIN_PATH - executableDirLen - pluginDirNameLen - slashLen, pluginCfgFileName);
309309

310-
FILE *pluginCfgFile = 0;
311-
_wfopen_s(&pluginCfgFile, currentModuleName, L"r");
310+
FILE *pluginCfgFile = _wfopen(currentModuleName, L"r");
312311
if (!pluginCfgFile)
313312
{
314313
TRACE_HIVE_INFO("in directory \"%S\" no mandatory \"%S\"\n"

0 commit comments

Comments
 (0)