- remove dead code, fixes CID 60, CID 61

svn path=/trunk/; revision=36765
This commit is contained in:
Kamil Hornicek 2008-10-16 08:50:56 +00:00
parent 4e58a2eaca
commit 241074220b
2 changed files with 4 additions and 2 deletions

View file

@ -86,7 +86,9 @@ DisplayAdvancedSettings(HWND hWndParent, PDISPLAY_DEVICE_ENTRY DisplayDevice)
HPSXA hpsxaDev, hpsxaDisp;
BOOL Ret;
IDataObject *pdo;
#ifdef _MSC_VER
HMODULE hShell32 = NULL;
#endif
CPSEAE msvc_SHCreatePropSheetExtArrayEx;
/* silence gcc warning */
@ -140,8 +142,10 @@ DisplayAdvancedSettings(HWND hWndParent, PDISPLAY_DEVICE_ENTRY DisplayDevice)
IDataObject_Release(pdo);
#ifdef _MSC_VER
if (hShell32)
FreeLibrary(hShell32);
#endif
return Ret;
}

View file

@ -243,8 +243,6 @@ ByeBye:
HeapFree(GetProcessHeap(), 0, name);
if (key != NULL)
HeapFree(GetProcessHeap(), 0, key);
if (devid != NULL)
HeapFree(GetProcessHeap(), 0, devid);
return FALSE;
}