mirror of https://github.com/FreeRDP/FreeRDP
wfreerdp-server: fix warnings
This commit is contained in:
parent
64a67b5cd0
commit
0471db7bca
|
@ -41,7 +41,7 @@ int wf_directsound_activate(rdpsnd_server_context* context)
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
_tprintf(_T("Failed to create sound capture device\n"));
|
_tprintf(_T("Failed to create sound capture device\n"));
|
||||||
return;
|
return 1;
|
||||||
}
|
}
|
||||||
_tprintf(_T("Created sound capture device\n"));
|
_tprintf(_T("Created sound capture device\n"));
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@ int get_screen_info(int id, _TCHAR* name, int* width, int* height, int* bpp)
|
||||||
*width = GetDeviceCaps(dc, HORZRES);
|
*width = GetDeviceCaps(dc, HORZRES);
|
||||||
*height = GetDeviceCaps(dc, VERTRES);
|
*height = GetDeviceCaps(dc, VERTRES);
|
||||||
*bpp = GetDeviceCaps(dc, BITSPIXEL);
|
*bpp = GetDeviceCaps(dc, BITSPIXEL);
|
||||||
ReleaseDC(NULL, dc);
|
//ReleaseDC(NULL, dc);
|
||||||
|
DeleteDC(dc);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue