diff options
Diffstat (limited to 'cpp/test/WinRT/TestSuite/MainPage.xaml.cpp')
-rw-r--r-- | cpp/test/WinRT/TestSuite/MainPage.xaml.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp index 696b40f5e52..3de8fef35ca 100644 --- a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp +++ b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp @@ -298,7 +298,8 @@ typedef IceUtil::Handle<Runnable> RunnablePtr; bool isIn(const string s[], const string& name) { - for(int i = 0; i < sizeof(s); ++i) + int l = sizeof(s)/sizeof(string*); + for(int i = 0; i < l; ++i) { if(s[i] == name) { |