aboutsummaryrefslogtreecommitdiff
path: root/src/ca/wixhttpca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ca/wixhttpca.cpp')
-rw-r--r--src/ca/wixhttpca.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ca/wixhttpca.cpp b/src/ca/wixhttpca.cpp
index 3c091192..0355f718 100644
--- a/src/ca/wixhttpca.cpp
+++ b/src/ca/wixhttpca.cpp
@@ -40,8 +40,6 @@ LPCWSTR vcsHttpUrlAceQuery =
40 L"WHERE `WixHttpUrlAce`.`WixHttpUrlReservation_`=?"; 40 L"WHERE `WixHttpUrlAce`.`WixHttpUrlReservation_`=?";
41enum eHttpUrlAceQuery { huaqSecurityPrincipal = 1, huaqRights }; 41enum eHttpUrlAceQuery { huaqSecurityPrincipal = 1, huaqRights };
42 42
43enum eHandleExisting { heReplace = 0, heIgnore = 1, heFail = 2 };
44
45/****************************************************************** 43/******************************************************************
46 SchedHttpUrlReservations - immediate custom action worker to 44 SchedHttpUrlReservations - immediate custom action worker to
47 prepare configuring URL reservations. 45 prepare configuring URL reservations.
@@ -348,6 +346,11 @@ extern "C" UINT __stdcall ExecHttpUrlReservations(
348 ExitOnFailure(hr, "Failed to get CustomActionData."); 346 ExitOnFailure(hr, "Failed to get CustomActionData.");
349 WcaLog(LOGMSG_TRACEONLY, "CustomActionData: %ls", sczCustomActionData); 347 WcaLog(LOGMSG_TRACEONLY, "CustomActionData: %ls", sczCustomActionData);
350 348
349 if (!sczCustomActionData || !*sczCustomActionData)
350 {
351 WcaLog(LOGMSG_STANDARD, "No URL reservations to be executed.");
352 }
353
351 wz = sczCustomActionData; 354 wz = sczCustomActionData;
352 while (wz && *wz) 355 while (wz && *wz)
353 { 356 {
@@ -388,7 +391,7 @@ extern "C" UINT __stdcall ExecHttpUrlReservations(
388 { 391 {
389 if (fRollback) 392 if (fRollback)
390 { 393 {
391 WcaLogError(hr, "Failed to remove reservation for URL '%ls'", sczUrl); 394 WcaLogError(hr, "Failed to remove reservation for rollback for URL '%ls'", sczUrl);
392 } 395 }
393 else 396 else
394 { 397 {
@@ -396,6 +399,7 @@ extern "C" UINT __stdcall ExecHttpUrlReservations(
396 } 399 }
397 } 400 }
398 } 401 }
402
399 if (fAdd) 403 if (fAdd)
400 { 404 {
401 WcaLog(LOGMSG_STANDARD, "Adding reservation for URL '%ls' with SDDL '%ls'", sczUrl, sczSDDL); 405 WcaLog(LOGMSG_STANDARD, "Adding reservation for URL '%ls' with SDDL '%ls'", sczUrl, sczSDDL);
@@ -408,7 +412,7 @@ extern "C" UINT __stdcall ExecHttpUrlReservations(
408 { 412 {
409 if (fRollback) 413 if (fRollback)
410 { 414 {
411 WcaLogError(hr, "Failed to add reservation for URL '%ls' with SDDL '%ls'", sczUrl, sczSDDL); 415 WcaLogError(hr, "Failed to add reservation for rollback for URL '%ls' with SDDL '%ls'", sczUrl, sczSDDL);
412 } 416 }
413 else 417 else
414 { 418 {