summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-02-17 17:10:28 +0000
committersr55 <[email protected]>2019-02-17 17:10:28 +0000
commite503ff5b0546126b4b0992e3e4d932728874ce75 (patch)
tree5eecaef35633483312af261ef5df5c8b3904a221
parentfae6c3885dd5127618df3630cddba8554df2e817 (diff)
WinGui: Backout Handling of AccessViolations. Makes the hardware handling issue worse.
-rw-r--r--win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs
index 77201bc38..d5fb281b1 100644
--- a/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs
+++ b/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs
@@ -89,20 +89,20 @@ namespace HandBrake.Interop.Interop
}
}
- [HandleProcessCorruptedStateExceptions]
+ //[HandleProcessCorruptedStateExceptions]
static bool TryInit()
{
try
{
- if (HBFunctions.hb_global_init() == -1)
+ if (HBFunctions.hb_global_init_no_hardware() == -1)
{
throw new InvalidOperationException("HB global init failed.");
}
}
- catch (AccessViolationException e)
- {
- return false;
- }
+ //catch (AccessViolationException e)
+ //{
+ // return false;
+ //}
catch (Exception e)
{
return false;