Fresh IDE . Check-in [953f8adc23]
Not logged in

This repository is a mirror!

The original is located on: https://fresh.flatassembler.net/fossil/repo/fresh
If you want to follow the project, please update your remote-url

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More simple and clean code.
Timelines: family | ancestors | descendants | both | FixSaveAsDlg
Files: files | file ages | folders
SHA1:953f8adc23072834d19286f6881228c8cf35514c
User & Date: johnfound 2017-12-22 20:57:28
Context
2017-12-30
09:03
Merged with FixSaveAsDlg branch in order to fix a bug, manifesting only in Win10. check-in: 79923f736e user: johnfound tags: trunk
2017-12-22
20:57
More simple and clean code. Closed-Leaf check-in: 953f8adc23 user: johnfound tags: FixSaveAsDlg
20:37
Fixing a bug in the SaveAs dialog, causing crashes in Windows 10. check-in: c85695b2df user: johnfound tags: FixSaveAsDlg
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to source/opendialog.asm.

231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247

248
249
250
251
252
253
254
        xor eax, eax
        stosd

        stdcall FreeMem ; from the stack

        pop     edi

        xor     esi, esi
        mov     eax, [.hInitialDir]
        test    eax, eax
        jz      .initial_dir_ok

        stdcall utf8ToWideChar, eax
        mov     esi, eax                ; in order to free it at the end.

.initial_dir_ok:
        mov     [.opn.lpstrInitialDir], eax


        xor     edx, edx
        mov     [.opn.lStructSize], sizeof.OPENFILENAME

        mov     eax, [.hOwner]
        mov     [.opn.hwndOwner], eax








<





<



>







231
232
233
234
235
236
237

238
239
240
241
242

243
244
245
246
247
248
249
250
251
252
253
        xor eax, eax
        stosd

        stdcall FreeMem ; from the stack

        pop     edi


        mov     eax, [.hInitialDir]
        test    eax, eax
        jz      .initial_dir_ok

        stdcall utf8ToWideChar, eax


.initial_dir_ok:
        mov     [.opn.lpstrInitialDir], eax
        mov     esi, eax                ; in order to free it at the end.

        xor     edx, edx
        mov     [.opn.lStructSize], sizeof.OPENFILENAME

        mov     eax, [.hOwner]
        mov     [.opn.hwndOwner], eax