func:  CVE_2013_1673_VULN_FixServicePath(SC_HANDLE LPCWSTR BOOL &servicePathWasWrong) bool doesServiceHaveCorrectPath ! wcsstr ( currentServicePath , L "maintenanceservice_tmp.exe" ) if ( doesServiceHaveCorrectPath )  WCHAR fixedPath [ MAX_PATH + 1 ] = L '\0' wcsncpy ( fixedPath , currentServicePath , MAX_PATH ); PathUnquoteSpacesW ( fixedPath ); if ( ! PathRemoveFileSpecW ( fixedPath ) )  if ( ! PathAppendSafe ( fixedPath , L "maintenanceservice.exe" ) ) if ( ! ChangeServiceConfigW ( service , SERVICE_NO_CHANGE , SERVICE_NO_CHANGE , SERVICE_NO_CHANGE , fixedPath , NULL , NULL , NULL , NULL , NULL , NULL ) )  LOG ( ( "Fixed service path to: %ls." , fixedPath ) ); 