diff --git a/configs/sam3u-ek/nx/defconfig b/configs/sam3u-ek/nx/defconfig index 7c944798ba..bc94309ec6 100755 --- a/configs/sam3u-ek/nx/defconfig +++ b/configs/sam3u-ek/nx/defconfig @@ -878,7 +878,7 @@ CONFIG_EXAMPLES_NX_TBCOLOR=0xad55 CONFIG_EXAMPLES_NX_FONTCOLOR=0x0000 CONFIG_EXAMPLES_NX_BPP=16 CONFIG_EXAMPLES_NX_RAWWINDOWS=n -CONFIG_EXAMPLES_NX_STACKSIZE=8192 +CONFIG_EXAMPLES_NX_STACKSIZE=2048 CONFIG_EXAMPLES_NX_CLIENTPRIO=80 CONFIG_EXAMPLES_NX_SERVERPRIO=120 CONFIG_EXAMPLES_NX_NOTIFYSIGNO=4 diff --git a/examples/nx/nx_main.c b/examples/nx/nx_main.c index 4f5fe8cd4b..eac7c12b11 100644 --- a/examples/nx/nx_main.c +++ b/examples/nx/nx_main.c @@ -853,8 +853,8 @@ int user_start(int argc, char *argv[]) /* Close the window 2 */ errout_with_hwnd2: - message("user_start: Close window\n"); - (void)nxeg_closewindow(hwnd2, &g_wstate[2]); + message("user_start: Close window #2\n"); + (void)nxeg_closewindow(hwnd2, &g_wstate[1]); /* Close the window1 */