Browse Source

win-capture: Fix bad return type

This was casting the return type to bool, which caused any non-zero
return code be converted to 1.
jp9000 10 years ago
parent
commit
bf1d07f513
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/win-capture/game-capture.c

+ 1 - 1
plugins/win-capture/game-capture.c

@@ -560,7 +560,7 @@ static inline bool init_pipe(struct game_capture *gc)
 	return true;
 }
 
-static inline bool inject_library(HANDLE process, const wchar_t *dll)
+static inline int inject_library(HANDLE process, const wchar_t *dll)
 {
 	return inject_library_obf(process, dll,
 			"D|hkqkW`kl{k\\osofj", 0xa178ef3655e5ade7,