diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index ff1c13648fd..035f0a8c8fc 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -912,8 +912,9 @@ MingwModuleHandler::GenerateWindresCommand ( dependencies += " " + NormalizeFilename ( module.xmlbuildFile ); string objectFilename = GetObjectFilename ( sourceFilename, &clean_files ); - string rciFilename = ros_temp + module.name + ".rci.tmp"; - string resFilename = ros_temp + module.name + ".res.tmp"; + string sourceFilenamePart = ReplaceExtension ( GetFilename ( sourceFilename ), "" ); + string rciFilename = ros_temp + module.name + "." + sourceFilenamePart + ".rci.tmp"; + string resFilename = ros_temp + module.name + "." + sourceFilenamePart + ".res.tmp"; if ( module.useWRC ) { fprintf ( fMakefile,