}
else
{
- FullIconName = DuplicateString(FullFileName);
+ FullIconName = pSetupDuplicateString(FullFileName);
if (!FullIconName)
goto cleanup;
}
if (SUCCEEDED(hr))
{
/* Fill link properties */
- if (SUCCEEDED(hr))
- hr = IShellLinkW_SetPath(psl, FullFileName);
+ hr = IShellLinkW_SetPath(psl, FullFileName);
if (SUCCEEDED(hr))
hr = IShellLinkW_SetArguments(psl, L"");
if (SUCCEEDED(hr))
GetLineText(hInf, ServiceSection, DescriptionKey, &Description);
GetLineText(hInf, ServiceSection, DependenciesKey, &Dependencies);
+ /* If there is no group, we must not request a tag */
+ if (!LoadOrderGroup || !*LoadOrderGroup)
+ useTag = FALSE;
+
hService = OpenServiceW(
hSCManager,
ServiceName,
if (!DestinationInfFileName && DestinationInfFileNameSize > 0)
SetLastError(ERROR_INVALID_PARAMETER);
- else if (!(SourceInfFileNameW = MultiByteToUnicode(SourceInfFileName, CP_ACP)))
+ else if (!(SourceInfFileNameW = pSetupMultiByteToUnicode(SourceInfFileName, CP_ACP)))
SetLastError(ERROR_INVALID_PARAMETER);
- else if (OEMSourceMediaType != SPOST_NONE && !(OEMSourceMediaLocationW = MultiByteToUnicode(OEMSourceMediaLocation, CP_ACP)))
+ else if (OEMSourceMediaType != SPOST_NONE && !(OEMSourceMediaLocationW = pSetupMultiByteToUnicode(OEMSourceMediaLocation, CP_ACP)))
SetLastError(ERROR_INVALID_PARAMETER);
else
{
SetLastError(ERROR_INVALID_PARAMETER);
else if (OEMSourceMediaType != SPOST_NONE && OEMSourceMediaType != SPOST_PATH && OEMSourceMediaType != SPOST_URL)
SetLastError(ERROR_INVALID_PARAMETER);
- else if (OEMSourceMediaType != SPOST_NONE && !OEMSourceMediaLocation)
- SetLastError(ERROR_INVALID_PARAMETER);
else if (CopyStyle & ~(SP_COPY_DELETESOURCE | SP_COPY_REPLACEONLY | SP_COPY_NOOVERWRITE | SP_COPY_OEMINF_CATALOG_ONLY))
{
TRACE("Unknown flags: 0x%08lx\n", CopyStyle & ~(SP_COPY_DELETESOURCE | SP_COPY_REPLACEONLY | SP_COPY_NOOVERWRITE | SP_COPY_OEMINF_CATALOG_ONLY));
{
if (GetFileSizeEx(hDestFile, &DestFileSize)
&& DestFileSize.QuadPart == SourceFileSize.QuadPart
- && compare_files(hSourceFile, hDestFile))
+ && !compare_files(hSourceFile, hDestFile))
{
TRACE("%s already exists as %s\n",
debugstr_w(SourceInfFileName), debugstr_w(pFileName));