Cast windows HANDLE to intptr_t, not long

The cast in g_warning is not fixed. It's unimportant, displaying a
handle value does not provide any meaningful information anyway.

Closes #727.
This commit is contained in:
Dimitar Zhekov 2015-11-01 20:23:35 +02:00 committed by Colomban Wendling
parent a11e43e22a
commit 23323f5377

View File

@ -812,7 +812,7 @@ static FILE *open_std_handle(DWORD handle, const char *mode)
g_free(err);
return NULL;
}
hConHandle = _open_osfhandle((long)lStdHandle, _O_TEXT);
hConHandle = _open_osfhandle((intptr_t)lStdHandle, _O_TEXT);
if (hConHandle == -1)
{
gchar *err = g_win32_error_message(GetLastError());