Commit f93390f7 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

setupapi: Simplify the "pointer to start of array" idiom.

parent c48b372b
...@@ -286,7 +286,7 @@ BOOL WINAPI SetupQueryInfFileInformationW(PSP_INF_INFORMATION InfInformation, ...@@ -286,7 +286,7 @@ BOOL WINAPI SetupQueryInfFileInformationW(PSP_INF_INFORMATION InfInformation,
if (InfIndex != 0) if (InfIndex != 0)
FIXME("Appended INF files are not handled\n"); FIXME("Appended INF files are not handled\n");
ptr = (LPWSTR)&InfInformation->VersionData[0]; ptr = (LPWSTR)InfInformation->VersionData;
len = lstrlenW(ptr); len = lstrlenW(ptr);
if (RequiredSize) if (RequiredSize)
...@@ -674,7 +674,7 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW( ...@@ -674,7 +674,7 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
return FALSE; return FALSE;
} }
inf_path = (LPWSTR)&InfInformation->VersionData[0]; inf_path = (LPWSTR)InfInformation->VersionData;
/* FIXME: we should get OriginalCatalogName from CatalogFile line in /* FIXME: we should get OriginalCatalogName from CatalogFile line in
* the original inf file and cache it, but that would require building a * the original inf file and cache it, but that would require building a
......
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