comcat: Cast-qual warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Jul 14 17:22:47 CDT 2007
Changelog:
comcat: Cast-qual warning fix.
diff -urN a/dlls/comcat/information.c b/dlls/comcat/information.c
--- a/dlls/comcat/information.c 2007-04-03 12:49:55.000000000 +0100
+++ b/dlls/comcat/information.c 2007-07-14 23:14:58.000000000 +0100
@@ -737,6 +737,7 @@
CLSID_IEnumGUIDImpl *This = (CLSID_IEnumGUIDImpl *)iface;
static const WCHAR keyname[] = { 'C', 'L', 'S', 'I', 'D', 0 };
CLSID_IEnumGUIDImpl *new_this;
+ struct class_categories *new_cats;
DWORD size;
TRACE("\n");
@@ -749,13 +750,14 @@
new_this->lpVtbl = This->lpVtbl;
new_this->ref = 1;
size = HeapSize(GetProcessHeap(), 0, (LPVOID)This->categories);
- new_this->categories =
+ new_this->categories = new_cats =
HeapAlloc(GetProcessHeap(), 0, size);
if (new_this->categories == NULL) {
HeapFree(GetProcessHeap(), 0, new_this);
return E_OUTOFMEMORY;
}
- memcpy((LPVOID)new_this->categories, This->categories, size);
+ memcpy(new_cats, This->categories, size);
+ new_this->categories = new_cats;
/* FIXME: could we more efficiently use DuplicateHandle? */
RegOpenKeyExW(HKEY_CLASSES_ROOT, keyname, 0, KEY_READ, &new_this->key);
new_this->next_index = This->next_index;
More information about the wine-patches
mailing list