microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.1k stars 3.24k forks source link

Return of pointer to local variable #301

Open OwnageIsMagic opened 1 year ago

OwnageIsMagic commented 1 year ago

https://github.com/microsoft/Windows-classic-samples/blob/7cbd99ac1d2b4a0beffbaba29ea63d024ceff700/Samples/Win7Samples/netds/dhcp/dhcprequest/dhcprequest.cpp#L66-L71 https://github.com/microsoft/Windows-classic-samples/blob/7cbd99ac1d2b4a0beffbaba29ea63d024ceff700/Samples/Win7Samples/netds/dhcp/dhcprequest/dhcprequest.cpp#L108 https://github.com/microsoft/Windows-classic-samples/blob/7cbd99ac1d2b4a0beffbaba29ea63d024ceff700/Samples/Win7Samples/netds/dhcp/dhcprequest/dhcprequest.cpp#L122