Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed DeleteInterfaceList() from dllmain. #111

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/01/Programmer/Programmer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int TryConnectStLink(int stLinkProbeIndex, int shared, debugConnectMode debugCon
debugConnectParameters* stLinkList;
debugConnectParameters debugParameters;

int getStlinkListNb = getStLinkList(&stLinkList, shared);
int getStlinkListNb = getStLinkEnumerationList(&stLinkList, shared);

if (getStlinkListNb == 0)
{
Expand Down Expand Up @@ -430,12 +430,10 @@ int VerifyMemoryBySegment(unsigned int address, unsigned char* data, unsigned in
return -99;
}

segmentData_C segmentData
{
address = 0,
size = size,
data = data
};
segmentData_C segmentData{};
segmentData.address = 0;
segmentData.size = size;
segmentData.data = data;

fileData_C fileData{};
fileData.Type = 0;
Expand Down
1 change: 0 additions & 1 deletion src/01/Programmer/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ BOOL APIENTRY DllMain( HMODULE hModule,
break;

case DLL_PROCESS_DETACH:
DeleteInterfaceList();
break;
}

Expand Down