From dbaf91c85e8454fab0e380d5d8c112bce5906d8e Mon Sep 17 00:00:00 2001 From: turbocat Date: Thu, 8 Jul 2021 15:30:46 +0000 Subject: [PATCH] Fixed Fplay opendialog crash git-svn-id: svn://kolibrios.org@9025 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/media/fplay/Makefile | 2 +- contrib/media/fplay/opendial.asm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/media/fplay/Makefile b/contrib/media/fplay/Makefile index 06c27e6913..f6f45416f4 100644 --- a/contrib/media/fplay/Makefile +++ b/contrib/media/fplay/Makefile @@ -1,6 +1,6 @@ NAME= Fplay -FASM= fasm.exe +FASM= fasm CC = kos32-gcc AR = kos32-ar LD = kos32-ld diff --git a/contrib/media/fplay/opendial.asm b/contrib/media/fplay/opendial.asm index 416c1413d7..0090d7ef33 100644 --- a/contrib/media/fplay/opendial.asm +++ b/contrib/media/fplay/opendial.asm @@ -83,12 +83,15 @@ _get_moviefile: push od call [opendialog_start] + cmp [od.status], 1 + jne .fail popad mov eax, [od.openfile_path]; selected filePath ret .fail: + popad xor eax, eax ret