ext/UiaDll/UiaDll/TextMethods.cpp in uia-0.1.3.1 vs ext/UiaDll/UiaDll/TextMethods.cpp in uia-0.2

- old
+ new

@@ -1,10 +1,10 @@ #include "Stdafx.h" extern "C" { __declspec(dllexport) int Text_GetText(ElementInformationPtr element, char* text, const int textLength, char* errorInfo, const int errorInfoLength) { try { - auto theText = Find(element)->As<TextPattern^>(TextPattern::Pattern)->DocumentRange->GetText(-1); + auto theText = ElementFrom(element)->As<TextPattern^>(TextPattern::Pattern)->DocumentRange->GetText(-1); if( NULL != text ) { StringHelper::CopyToUnmanagedString(theText, text, textLength); } return theText->Length; \ No newline at end of file