MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / SetName

Method SetName

source/script_gui.cpp:2596–2607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2594
2595
2596ResultType GuiType::SetName(LPTSTR aName)
2597{
2598 if (*aName)
2599 {
2600 aName = _tcsdup(aName);
2601 if (!aName)
2602 return MemoryError();
2603 }
2604 free(mName);
2605 mName = aName;
2606 return OK;
2607}
2608
2609
2610

Callers

nothing calls this directly

Calls 1

MemoryErrorFunction · 0.85

Tested by

no test coverage detected