alroyso 4 months ago
parent
commit
d669f321da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      windows/wl_base_help_plugin.cpp

+ 2 - 2
windows/wl_base_help_plugin.cpp

@@ -241,8 +241,8 @@ bool isDialUpEnabled() {
     // 枚举所有的 RAS 连接,检查是否有 PPP 连接
     if (RasEnumConnections(rasConn, &dwSize, &dwConnections) == ERROR_SUCCESS) {
         for (DWORD i = 0; i < dwConnections; i++) {
-            if (strcmp(rasConn[i].szDeviceType, "RASDT_PPP") == 0 ||
-                strcmp(rasConn[i].szDeviceType, "RASDT_PPPoE") == 0) {
+            if (wcscmp(rasConn[i].szDeviceType, L"RASDT_PPP") == 0 ||
+                wcscmp(rasConn[i].szDeviceType, L"RASDT_PPPoE") == 0) {
                 return true;  // 检测到 PPP 或 PPPoE 连接
             }
         }