Skip to content

Commit aff62e3

Browse files
committed
Fix build error
1 parent b970eef commit aff62e3

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Client/multiplayer_sa/CMultiplayerSA_Direct3D.cpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ void _cdecl OnPreCreateDevice(IDirect3D9* pDirect3D, UINT Adapter, D3DDEVTYPE De
6060
else
6161
{
6262
ms_hasDeviceArgs = false;
63-
AddReportLog(8740, SString("OnPreCreateDevice: missing device arguments for alt startup path"));
63+
SString message;
64+
message = "OnPreCreateDevice: missing device arguments for alt startup path";
65+
AddReportLog(8740, message);
6466
}
6567
}
6668

@@ -129,20 +131,26 @@ HRESULT _cdecl OnPostCreateDevice(HRESULT hResult)
129131

130132
if (!ms_hasDeviceArgs)
131133
{
132-
AddReportLog(8741, SString("OnPostCreateDevice: device arguments were not captured; skipping alt startup logic"));
134+
SString message;
135+
message = "OnPostCreateDevice: device arguments were not captured; skipping alt startup logic";
136+
AddReportLog(8741, message);
133137
return hResult;
134138
}
135139

136140
if (!SharedUtil::IsReadablePointer(ms_ppReturnedDeviceInterface, sizeof(*ms_ppReturnedDeviceInterface)))
137141
{
138-
AddReportLog(8742, SString("OnPostCreateDevice: invalid device pointer reference %p", ms_ppReturnedDeviceInterface));
142+
SString message;
143+
message.Format("OnPostCreateDevice: invalid device pointer reference %p", ms_ppReturnedDeviceInterface);
144+
AddReportLog(8742, message);
139145
ms_hasDeviceArgs = false;
140146
return hResult;
141147
}
142148

143149
if (!SharedUtil::IsReadablePointer(ms_pPresentationParameters, sizeof(*ms_pPresentationParameters)))
144150
{
145-
AddReportLog(8743, SString("OnPostCreateDevice: invalid presentation parameters pointer %p", ms_pPresentationParameters));
151+
SString message;
152+
message.Format("OnPostCreateDevice: invalid presentation parameters pointer %p", ms_pPresentationParameters);
153+
AddReportLog(8743, message);
146154
ms_hasDeviceArgs = false;
147155
return hResult;
148156
}

0 commit comments

Comments
 (0)