Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 079ecc6

Browse files
committed
Fix new c++ compiler warning after moving to C++ 14
nativetestservice.cpp(140): warning C4477: 'wprintf' : format string '%s' requires an argument of type 'wchar_t *' , but variadic argument 1 has type 'std::wstring *'
1 parent 9ed1b0e commit 079ecc6

File tree

1 file changed

+1
-1
lines changed
  • src/System.ServiceProcess.ServiceController/tests/System.ServiceProcess.ServiceController.TestNativeService

1 file changed

+1
-1
lines changed

src/System.ServiceProcess.ServiceController/tests/System.ServiceProcess.ServiceController.TestNativeService/NativeTestService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int _tmain(int argc, _TCHAR* argv [])
137137
}
138138
else
139139
{
140-
wprintf(L"error: Invalid action '%s'\n", action);
140+
wprintf(L"error: Invalid action '%s'\n", action.c_str());
141141
return -1;
142142
}
143143
}

0 commit comments

Comments
 (0)