Skip to content

Commit

Permalink
xrWeatherEditor: fix STAThread
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 24, 2018
1 parent b1b2982 commit 0626572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
// Init COM so we can use CoCreateInstance
// HRESULT co_res =
Params = xr_strdup(GetCommandLine());
if (!strstr(Params, "-editor"))
if (!strstr(Params, "-weather"))
CoInitializeEx(nullptr, COINIT_MULTITHREADED);

string_path fn, dr, di;
Expand Down
2 changes: 1 addition & 1 deletion src/xrSound/OpenALDeviceList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void ALDeviceList::Enumerate()
GetDeviceDesc(j).props.eax, GetDeviceDesc(j).props.efx ? "yes" : "no",
GetDeviceDesc(j).props.xram ? "yes" : "no");
}
if (!strstr(GetCommandLine(), "-editor"))
if (!strstr(GetCommandLine(), "-weather"))
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
}

Expand Down

0 comments on commit 0626572

Please sign in to comment.