]> gitweb.factorcode.org Git - factor.git/commitdiff
io.files.trash.windows: fix SHFILEOPSTRUCTW struct
authorAlexander Iljin <ajsoft@yandex.ru>
Wed, 15 Apr 2020 21:28:06 +0000 (23:28 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 17 Apr 2020 02:55:24 +0000 (02:55 +0000)
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

index 4cecf5fa89555fead5ef51a901b63d4d2b8ece68..f1b0d9ab0ce10d880b0c1a93b3a5417e46a23a0d 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: shell32
 
 TYPEDEF: WORD FILEOP_FLAGS
 
-PACKED-STRUCT: SHFILEOPSTRUCTW
+STRUCT: SHFILEOPSTRUCTW
     { hwnd HWND }
     { wFunc UINT }
     { pFrom LPCWSTR* }