Переглянути джерело

WinHandle: Do not close handle on operator &

This is not a com pointer; it should not release/close the handle when
an & operator is used, it should only return the handle value.  Clearing
is only used on assignment.
jp9000 11 роки тому
батько
коміт
1abcdd7f50
1 змінених файлів з 0 додано та 2 видалено
  1. 0 2
      libobs/util/windows/WinHandle.hpp

+ 0 - 2
libobs/util/windows/WinHandle.hpp

@@ -44,8 +44,6 @@ public:
 
 
 	inline HANDLE* operator&()
 	inline HANDLE* operator&()
 	{
 	{
-		Clear();
-		handle = NULL;
 		return &handle;
 		return &handle;
 	}
 	}