wfreerdp-server: fix warnings

This commit is contained in:
Corey C 2013-02-19 16:27:35 -05:00
parent 64a67b5cd0
commit 0471db7bca
2 changed files with 3 additions and 2 deletions

View File

@ -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"));

View File

@ -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