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) ...@@ -91,6 +91,7 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
VHSTR n; VHSTR n;
VHSTR index = 0xffff; VHSTR index = 0xffff;
HANDLE heap; HANDLE heap;
LPSTR str;
TRACE("add string '%s'\n", lpszName); TRACE("add string '%s'\n", lpszName);
/* search whether string already inserted */ /* search whether string already inserted */
...@@ -137,8 +138,9 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName) ...@@ -137,8 +138,9 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
if (!vhstrlist[index]) if (!vhstrlist[index])
vhstrlist[index] = HeapAlloc(heap, HEAP_ZERO_MEMORY, sizeof(VHSTR_STRUCT)); vhstrlist[index] = HeapAlloc(heap, HEAP_ZERO_MEMORY, sizeof(VHSTR_STRUCT));
vhstrlist[index]->refcount = 1; vhstrlist[index]->refcount = 1;
vhstrlist[index]->pStr = HeapAlloc(heap, 0, strlen(lpszName)+1); str = HeapAlloc(heap, 0, strlen(lpszName)+1);
strcpy((LPSTR)vhstrlist[index]->pStr, lpszName); strcpy(str, lpszName);
vhstrlist[index]->pStr = str;
return index; 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