ソースを参照

Z991239-891 #comment feat: 加载厂商库修改-引用发哥封装函数

翟俊伟80258120 5 年 前
コミット
89382bb988
1 ファイル変更6 行追加1 行削除
  1. 6 1
      Module/mod_FingerPrint/FingerPrintFSM.cpp

+ 6 - 1
Module/mod_FingerPrint/FingerPrintFSM.cpp

@@ -3,6 +3,7 @@
 #include "FingerPrint_UserErrorCode.h"
 #include "GetDevInfoHelper.h"
 #include "path.h"
+#include "DevEntityCommBase.hpp"
 
 #define FINGERPRINT_SCAN_TIMEOUT 15000
 #define FINGERPRINT_SCAN_INTERNAL 100
@@ -193,8 +194,12 @@ ErrorCodeEnum CFingerPrintFSM::OnInit()
 	ErrorCodeEnum err;
 	m_pFingerPrint = NULL;
 	bool bCreateDevCom = false;
+
 	CSimpleStringA dllName;
-	ErrorCodeEnum errDev = SpGetDevAdaptorPath(m_pEntity, GetEntityBase()->GetEntityName(), dllName);
+	CDevAdptEntityBase *pEntity = GET_DEV_ENTITY_BASE_POINTER();
+	ErrorCodeEnum errDev = pEntity->ExtractVendorLibFullPath(dllName);
+	Dbg("Extract Vendor lib name: %s", (const char*)dllName);
+
 	if (errDev != Error_Succeed)
 	{
 		Dbg("Get vendor dll(%s) name failed.", (const char*)dllName);