sinkcookie = HeapAlloc(GetProcessHeap(),0,sizeof(EditCookie));
if (!sinkcookie)
+ {
+ HeapFree(GetProcessHeap(), 0, cookie);
return E_OUTOFMEMORY;
+ }
cookie->lockType = dwLockFlags;
cookie->pOwningContext = This->pContext;
if (RegCreateKeyExW(HKEY_LOCAL_MACHINE, szwSystemTIPKey, 0, NULL, 0,
KEY_READ | KEY_WRITE, NULL, &This->key, NULL) != ERROR_SUCCESS)
+ {
+ HeapFree(GetProcessHeap(), 0, This);
return E_FAIL;
+ }
TRACE("returning %p\n", This);
*ppOut = (IEnumGUID*)This;
if (RegCreateKeyExW(HKEY_LOCAL_MACHINE, szwSystemTIPKey, 0, NULL, 0,
KEY_READ | KEY_WRITE, NULL, &This->tipkey, NULL) != ERROR_SUCCESS)
+ {
+ HeapFree(GetProcessHeap(), 0, This);
return E_FAIL;
+ }
TRACE("returning %p\n", This);
*ppOut = (IEnumTfLanguageProfiles*)This;