Skip to content

Commit 23b71eb

Browse files
committed
Bug 1353593 - Part 1.1: Fix usage of char16ptr_t in a graphics logging message. r=milan
This message intends to print out a string but was inadvertantly converting the string pointer to a hex value. Adding an implicit conversion of char16ptr_t to |wchar*| breaks this, so we just update the code to actually convert and print the string instead. MozReview-Commit-ID: 90luEnoysX3
1 parent e08fbaa commit 23b71eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gfx/thebes/D3D11Checks.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ D3D11Checks::DoesDeviceWork()
159159
return false;
160160
}
161161
if (displayLinkModuleVersion <= V(8,6,1,36484)) {
162-
gfxCriticalError(CriticalLog::DefaultOptions(false)) << "DisplayLink: too old version " << displayLinkModuleVersionString.get();
162+
NS_ConvertUTF16toUTF8 version(displayLinkModuleVersionString);
163+
gfxCriticalError(CriticalLog::DefaultOptions(false)) << "DisplayLink: too old version " << version.get();
163164
return false;
164165
}
165166
}

0 commit comments

Comments
 (0)