From 595cf81eb8d7b04432f2fdf2709244aaa87449d6 Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Wed, 15 Apr 2020 23:28:06 +0200 Subject: [PATCH] io.files.trash.windows: fix SHFILEOPSTRUCTW struct Fix the incorrect field alignment. SHFileOperationW crashed with a memory protection error while trying to dereference only part of the string pointer. --- extra/io/files/trash/windows/windows.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/io/files/trash/windows/windows.factor b/extra/io/files/trash/windows/windows.factor index 4cecf5fa89..f1b0d9ab0c 100644 --- a/extra/io/files/trash/windows/windows.factor +++ b/extra/io/files/trash/windows/windows.factor @@ -13,7 +13,7 @@ LIBRARY: shell32 TYPEDEF: WORD FILEOP_FLAGS -PACKED-STRUCT: SHFILEOPSTRUCTW +STRUCT: SHFILEOPSTRUCTW { hwnd HWND } { wFunc UINT } { pFrom LPCWSTR* }