🤬
  • 修复路径长度超过255导致程序报错bug

  • Loading...
  • maoku committed 2 months ago
    fd891759
    1 parent 7aa3adee
  • ■ ■ ■ ■
    SearchAvailableExe/SearchAvailableExe.vcxproj.user
    skipped 4 lines
    5 5   <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
    6 6   </PropertyGroup>
    7 7   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    8  - <LocalDebuggerCommandArguments>-i "D:"</LocalDebuggerCommandArguments>
     8 + <LocalDebuggerCommandArguments>-i "D:\software\WPS Office"</LocalDebuggerCommandArguments>
    9 9   <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
    10 10   </PropertyGroup>
    11 11  </Project>
  • ■ ■ ■ ■
    SearchAvailableExe/Tools.cpp
    skipped 289 lines
    290 290   count++;
    291 291   }
    292 292   
    293  - char fileFullPath[255] = { 0 };
     293 + char fileFullPath[0x255] = { 0 };
    294 294   strcat(fileFullPath, fileDir.c_str());
    295 295   strcat(fileFullPath, pName);
    296 296   
    skipped 635 lines
Please wait...
Page is in error, reload to recover