From 70dc807bf2d1c37ee595e58e3fd8735a1fbefcb0 Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Tue, 24 Nov 2009 20:36:53 +0000 Subject: [PATCH] [rosautotest]: Find the last underscore instead of the first one when building a module name, hurray for twain_32_winetest and ws2_32_winetest See issue #4929 for more details. svn path=/trunk/; revision=44282 --- rostests/rosautotest/CWineTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/rosautotest/CWineTest.cpp b/rostests/rosautotest/CWineTest.cpp index 471e6ab7e98..976343b8296 100644 --- a/rostests/rosautotest/CWineTest.cpp +++ b/rostests/rosautotest/CWineTest.cpp @@ -227,7 +227,7 @@ CWineTest::GetNextTestInfo() TestInfo->CommandLine += AsciiToUnicode(m_CurrentTest); /* Store the Module name */ - UnderscorePosition = m_CurrentFile.find('_'); + UnderscorePosition = m_CurrentFile.find_last_of('_'); if(UnderscorePosition == m_CurrentFile.npos) {