win-capture: Fix mingw compiler warnings

master
jp9000 2015-07-11 14:22:44 -07:00
parent 845a9d2f1a
commit 931f42dab1
3 changed files with 5 additions and 2 deletions

View File

@ -604,7 +604,7 @@ static inline bool hook_direct(struct game_capture *gc,
CloseHandle(process);
if (ret != 0) {
warn("hook_direct: inject failed: %ld", ret);
warn("hook_direct: inject failed: %d", ret);
return false;
}

View File

@ -94,6 +94,8 @@ static int inject_helper(wchar_t *argv[], const wchar_t *dll)
: inject_library_full(id, dll);
}
#define UNUSED_PARAMETER(x) ((void)(x))
int main(int argc, char *argv_ansi[])
{
wchar_t dll_path[MAX_PATH];
@ -119,5 +121,6 @@ int main(int argc, char *argv_ansi[])
}
LocalFree(argv);
UNUSED_PARAMETER(argv_ansi);
return ret;
}

View File

@ -23,7 +23,7 @@ int inject_library_obf(HANDLE process, const wchar_t *dll,
bool success = false;
size_t written_size;
DWORD thread_id;
HANDLE thread;
HANDLE thread = NULL;
size_t size;
void *mem;