Skip to content

Commit

Permalink
Fix build because can't convert ushort* to const char16_t *
Browse files Browse the repository at this point in the history
Change-Id: Ibf201379fc025cccf919bc2de9235db12e1c3eff
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
liangqi committed May 18, 2020
1 parent eeb08ea commit 2495c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/winutils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ QStringList findSharedLibraries(const QDir &directory, Platform platform,
QString winErrorMessage(unsigned long error)
{
QString rc = QString::fromLatin1("#%1: ").arg(error);
ushort *lpMsgBuf;
char16_t *lpMsgBuf;

const DWORD len = FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
Expand Down

0 comments on commit 2495c48

Please sign in to comment.