# SDL: Fixed example of creating a window with properties

**URL:** <https://discourse.libsdl.org/t/sdl-fixed-example-of-creating-a-window-with-properties/48047>\
**Category:** SDL Commits\
**Created:** [December 29, 2023, 12:36am UTC](https://discourse.libsdl.org/t/sdl-fixed-example-of-creating-a-window-with-properties/48047 "2023-12-29T00:36:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [December 29, 2023, 12:36am UTC](https://discourse.libsdl.org/t/sdl-fixed-example-of-creating-a-window-with-properties/48047/1 "2023-12-29T00:36:09Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/39e24e52c8d4d0986e21f878a9190b9b7784c556>

````diff
From 39e24e52c8d4d0986e21f878a9190b9b7784c556 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 28 Dec 2023 16:35:31 -0800
Subject: [PATCH] Fixed example of creating a window with properties

---
 docs/README-migration.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/README-migration.md b/docs/README-migration.md
index f25731691a54..b462d36cf876 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -1326,7 +1326,7 @@ Rather than iterating over displays using display index, there is a new function
 SDL_CreateWindow() has been simplified and no longer takes a window position. You can use SDL_CreateWindowWithProperties() if you need to set the window position when creating it, e.g.
 ```c
     SDL_PropertiesID props = SDL_CreateProperties();
- SDL_SetStringProperty(props, title);
+ SDL_SetStringProperty(props, "title", title);
     SDL_SetNumberProperty(props, "x", x);
     SDL_SetNumberProperty(props, "y", y);
     SDL_SetNumberProperty(props, "width", width);

````
