Removed carriage returns from previous patch

This commit is contained in:
Sam Lantinga 2016-10-01 13:16:31 -07:00
parent 7b0ccd32e5
commit f4b26cd8e0

View File

@ -1077,23 +1077,23 @@ SDL_RegisterApp(char *name, Uint32 style, void *hInst)
}
/* Register the application class */
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.hCursor = NULL;
wcex.hIcon = NULL;
wcex.hIconSm = NULL;
wcex.lpszMenuName = NULL;
wcex.lpszClassName = SDL_Appname;
wcex.style = SDL_Appstyle;
wcex.hbrBackground = NULL;
wcex.lpfnWndProc = WIN_WindowProc;
wcex.hInstance = SDL_Instance;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
/* Use the first icon as a default icon, like in the Explorer */
GetModuleFileName(SDL_Instance, path, MAX_PATH);
ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.hCursor = NULL;
wcex.hIcon = NULL;
wcex.hIconSm = NULL;
wcex.lpszMenuName = NULL;
wcex.lpszClassName = SDL_Appname;
wcex.style = SDL_Appstyle;
wcex.hbrBackground = NULL;
wcex.lpfnWndProc = WIN_WindowProc;
wcex.hInstance = SDL_Instance;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
/* Use the first icon as a default icon, like in the Explorer */
GetModuleFileName(SDL_Instance, path, MAX_PATH);
ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
if (!RegisterClassEx(&wcex)) {
return SDL_SetError("Couldn't register application class");
}