We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3109

Summary: Unable to get hWnd from window in windows 10/vs2015
Product: SDL Reporter: Henrik Johansson <texturehandle>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72
Version: 2.0.3   
Hardware: x86_64   
OS: Other   

Description Henrik Johansson 2015-08-30 08:47:08 UTC
The code :"
SDL_Window* window;
SDL_Init(SDL_INIT_VIDEO);

window = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);

SDL_SysWMinfo info;
SDL_VERSION(&info.version);
SDL_GetWindowWMInfo(window, &info); "

Does not work when using windows 10 and visual studio 2015.
info.info.win.window will contain garbage data. Version says 2.0.4.

Using the latest build from the repo(dbcbdc2940ef) and built sdl using vs2015.
Comment 1 Henrik Johansson 2015-08-30 17:17:24 UTC
Nope it works. It was me being stupid. Close this.
Comment 2 Alex Szpakowski 2015-08-30 18:01:13 UTC
Closed!