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

+ 2 - 3
windows/wl_base_help_plugin.cpp

@@ -241,15 +241,14 @@ 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 (strcmp(rasConn[i].szDeviceType, "RASDT_PPP") == 0 ||
+                strcmp(rasConn[i].szDeviceType, "RASDT_PPPoE") == 0) {
                 return true;  // 检测到 PPP 或 PPPoE 连接
             }
         }
     }
     return false;
 }
-
 namespace wl_base_help {
 
 // static