|
|
发表于 2022-7-14 20:06:52
|
显示全部楼层
本帖最后由 JennyYang 于 2022-7-14 20:08 编辑
请问一下这里报错是怎么回事呢小甲鱼
0x00007FFB101BFAAD (ntdll.dll)处(位于 test.exe 中)引发的异常: 0xC0000005: 写入位置 0xFFFFFFFFBDD6D510 时发生访问冲突。
0x00007FFB101BFAAD (ntdll.dll) (test.exe 中)处有未经处理的异常: 0xC0000005: 写入位置 0xFFFFFFFFBDD6D510 时发生访问冲突。
void findALLDirs(const char* path)
{
struct _finddata_t fa;
long handle;
char thePath[MAX];
strcpy(thePath, path);
if ((handle = _findfirst(strcat(thePath, "/*"), &fa)) == -1L)
{
fprintf(stderr, "The path %s is wrong!\n", path);
return;
}
do
{
if (!strcmp(fa.name, ".") || !strcmp(fa.name, ".."))
continue;
if(fa.attrib==_A_SUBDIR)
{
sprintf(thePath, "%s/%s", path, fa.name);
findAllCodes(thePath);
findALLDirs(thePath);
}
}while (_findnext(handle, &fa) == 0);
_findclose(handle);
} |
|