We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b360e37 commit 0fdb85dCopy full SHA for 0fdb85d
plugins/single-instance/src/platform_impl/windows.rs
@@ -113,6 +113,9 @@ unsafe extern "system" fn single_instance_window_proc<R: Runtime>(
113
) -> LRESULT {
114
let data_ptr = GetWindowLongPtrW(hwnd, GWL_USERDATA)
115
as *mut (AppHandle<R>, Box<SingleInstanceCallback<R>>);
116
+ if data_ptr.is_null() {
117
+ return DefWindowProcW(hwnd, msg, wparam, lparam);
118
+ }
119
let (app_handle, callback) = &mut *data_ptr;
120
121
match msg {
0 commit comments