Skip to content

Commit dc1d1ca

Browse files
committed
Fix logic for CreateXamlWindow.
1 parent 3ce20f0 commit dc1d1ca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

NanaBox/Utils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ HWND CreateXamlWindow(
309309
nullptr,
310310
nullptr,
311311
nullptr);
312+
if (!WindowHandle)
313+
{
314+
return nullptr;
315+
}
312316
if (!::SetWindowSubclass(
313317
WindowHandle,
314318
[](

0 commit comments

Comments
 (0)