![]() |
#15 |
Участник
|
Еще одно уточнение
X++: if (WTSQuerySessionInformation.call(handle, #WTS_CURRENT_SESSION, #WTSClientAddress, ptr, size) && size.dWord(0) > 0) { buf = new Binary(size.dWord(0)); buf.attach(ptr.dWord(0), size.dWord(0)); if (buf.dWord(0) == 2) { info(strfmt("%1.%2.%3.%4", buf.byte(#byteOne), buf.byte(#byteTwo), buf.byte(#byteThree), buf.byte(#byteFour))); } WTSFreeMemory.arg(ExtTypes::DWord); WTSFreeMemory.call(ptr.dWord(0)); } X++: WTSFreeMemory.arg(ExtTypes::DWord); WTSFreeMemory.call(ptr.dWord(0)); Иначе оно пропущено. Утечки памяти не будет ? |
|