libfreerdp-codec/rfx: dwSize must be initialized.

This commit is contained in:
Vic Lee 2013-06-14 12:16:04 +08:00
parent 9dbc240f68
commit b194ddc211

View File

@ -196,6 +196,8 @@ RFX_CONTEXT* rfx_context_new(void)
if (status == ERROR_SUCCESS)
{
dwSize = sizeof(dwValue);
if (RegQueryValueEx(hKey, _T("UseThreads"), NULL, &dwType, (BYTE*) &dwValue, &dwSize) == ERROR_SUCCESS)
context->priv->UseThreads = dwValue ? 1 : 0;