Fopen函数问题!求帮助
#pragma once#define _CRT_SECURE_NO_WARNINGS
#include<Windows.h>
#include<iostream>
#define FILE_ADDRESS "F:\\ipmsg_new.exe"
#define FILE_name "E:\\ipmsg.exe"
static DWORD WRITEFILETOPATCH(LPSTR ADDRESS, LPVOID *NEWBUFFER)
{
if (!*NEWBUFFER)
{
cout << "内存地址无效" << endl;
return 0;
}
FILE* FILE_NEW = fopen(FILE_ADDRESS, "wb");
fwrite(*NEWBUFFER, 1, FILE_SIZE, FILE_NEW);
fclose(FILE_NEW);
return 1;
}为什么会出现 0x7715E843 (ntdll.dll) (文件拉伸新生成.exe 中)处有未经处理的异常: 0xC0000374: 堆已损坏。 (参数: 0x77194270)。报错