Skip to content

Commit 0ca2bfd

Browse files
author
Alexey Semenyuk
committed
8311104: dangling-gsl warning in libwixhelper.cpp
Reviewed-by: almatvee
1 parent c05ba48 commit 0ca2bfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -72,10 +72,10 @@ class ProductInfo {
7272

7373
void findInstalledProducts(const Guid& upgradeCode,
7474
std::vector<ProductInfo>& products) {
75-
const LPCTSTR upgradeCodeStr = upgradeCode.toMsiString().c_str();
75+
const tstring upgradeCodeStr = upgradeCode.toMsiString();
7676
for (DWORD productCodeIdx = 0; true; ++productCodeIdx) {
7777
TCHAR productCode[39 /* http://msdn.microsoft.com/en-us/library/aa370101(v=vs.85).aspx */];
78-
const UINT status = MsiEnumRelatedProducts(upgradeCodeStr, 0,
78+
const UINT status = MsiEnumRelatedProducts(upgradeCodeStr.c_str(), 0,
7979
productCodeIdx, productCode);
8080
if (ERROR_NO_MORE_ITEMS == status) {
8181
break;

0 commit comments

Comments
 (0)