Commit 2f582443 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

setupapi: Cast-qual warning fix.

parent fde63f97
......@@ -91,6 +91,7 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
VHSTR n;
VHSTR index = 0xffff;
HANDLE heap;
LPSTR str;
TRACE("add string '%s'\n", lpszName);
/* search whether string already inserted */
......@@ -137,8 +138,9 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
if (!vhstrlist[index])
vhstrlist[index] = HeapAlloc(heap, HEAP_ZERO_MEMORY, sizeof(VHSTR_STRUCT));
vhstrlist[index]->refcount = 1;
vhstrlist[index]->pStr = HeapAlloc(heap, 0, strlen(lpszName)+1);
strcpy((LPSTR)vhstrlist[index]->pStr, lpszName);
str = HeapAlloc(heap, 0, strlen(lpszName)+1);
strcpy(str, lpszName);
vhstrlist[index]->pStr = str;
return index;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment