[Bug 29473] IconsExtract reports 'Invalid parameter' when requesting 'File Properties' ('ShellExecute' doesn't support 'properties' verb)

WineHQ Bugzilla wine-bugs at winehq.org
Fri Jan 29 06:38:47 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=29473

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|http://www.nirsoft.net/util |https://web.archive.org/web
                   |s/iconsext.zip              |/20200131004759/https://www
                   |                            |.nirsoft.net/utils/iconsext
                   |                            |.zip
                 CC|                            |focht at gmx.net
            Summary|IconsExtract: Requesting    |IconsExtract reports
                   |"File Properties"           |'Invalid parameter' when
                   |errors-out.                 |requesting 'File
                   |                            |Properties' ('ShellExecute'
                   |                            |doesn't support
                   |                            |'properties' verb)
          Component|-unknown                    |shell32

--- Comment #10 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming, still present.

Adding stable download link via Internet Archive:

https://web.archive.org/web/20200131004759/https://www.nirsoft.net/utils/iconsext.zip

I used 'shell32.dll' from file icon list just by coincidence, could be anything
else. Trace log:

--- snip ---
$ WINEDEBUG=+seh,+relay,+exec,+shell wine ./iconsext.exe >>log.txt 2>&1
...
0224:Call shell32.ShellExecuteExA(0031fc80) ret=00407ff8
0224:trace:exec:ShellExecuteExA 0x31fc80
0224:Call KERNEL32.MultiByteToWideChar(00000000,00000000,0040b660
"properties",ffffffff,00000000,00000000) ret=7dfea419 
...
0224:trace:exec:SHELL_execute mask=0x0000000c hwnd=0x4006c verb=L"properties"
file=L"C:\\windows\\system32\\shell32.dll" parm=L"" dir=(null) show=0x00000005
class=not used 
...
0224:trace:shell:HCR_GetExecuteCommandW (nil) L"Folder" L"properties" 0x31ebb0 
...
0224:trace:shell:HCR_GetDefaultVerbW 0xa0 L"properties" 0x31da70
0224:Call shlwapi.SHGetValueW(000000a0,0031dc78
L"shell\\properties\\command",00000000,00000000,0031ebb0,0031deb0) ret=7df88412
0224:Call shcore.SHGetValueW(000000a0,0031dc78
L"shell\\properties\\command",00000000,00000000,0031ebb0,0031deb0) ret=7bc3ab94 
...
0224:Ret  shcore.SHGetValueW() retval=00000002 ret=7bc3ab94
0224:Ret  shlwapi.SHGetValueW() retval=00000002 ret=7df88412 
...
0224:trace:shell:HCR_GetExecuteCommandW -- L"C:\\users\\focht\\Desktop" 
...
0224:trace:exec:SHELL_execute execute:L"",L"",L"" 
...
0224:trace:shell:PathFindOnPathW (L"",0031EBB0) 
...
0224:trace:exec:SHELL_quote_and_execute L""/L"properties" =>
L"\"C:\\windows\\system32\""/L""
...
0224:trace:exec:SHELL_ExecuteW Execute L"\"C:\\windows\\system32\"" from
directory L""
0224:Call KERNEL32.CreateProcessW(00000000,001c2470
L"\"C:\\windows\\system32\"",00000000,00000000,00000000,00000410,00000000,00000000,0031dbe4,0031dbd4)
ret=7dfe5383 
...
0224:trace:exec:SHELL_ExecuteW returning 5
...
0224:trace:exec:SHELL_FindExecutable L"" 
...
0224:trace:exec:SHELL_quote_and_execute L""/L"properties" => L"\"\""/L""
...
0224:trace:exec:SHELL_ExecuteW Execute L"\"\"" from directory L""
0224:Call KERNEL32.CreateProcessW(00000000,001c2470
L"\"\"",00000000,00000000,00000000,00000410,00000000,00000000,0031dbe4,0031dbd4)
ret=7dfe5383 
...
0224:trace:exec:SHELL_ExecuteW CreateProcess returned error 87
0224:trace:exec:SHELL_ExecuteW returning 11
...
0224:trace:exec:SHELL_execute retval 11
...
0224:Ret  KERNEL32.FormatMessageW() retval=00000014 ret=7dfe4cbb
0224:Call user32.MessageBoxW(0004006c,0031ceb0 L"Invalid
parameter.\r\n",00000000,00000010) ret=7dfe4cc7 
--- snip ---

Looks like 'ShellExecute' doesn't handle the 'properties' verb.

https://web.archive.org/web/20210129122428/https://social.msdn.microsoft.com/Forums/en-US/b1067bac-f89c-4e5a-98a9-0bcd4303dedc/how-to-display-drive-properties-dialog-box-programatically

$ sha1sum iconsext.zip 
485dc440cec3a30d221c5401e8909607bd74a4eb  iconsext.zip

$ du -sh iconsext.zip 
36K    iconsext.zip

$ wine --version
wine-6.0-293-gf72ef20e88f

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list