Module: wine
Branch: master
Commit: a4fcb9a8c6c9d3f6d081dd974fa3ed85cb9414b5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a4fcb9a8c6c9d3f6d081dd974…
Author: Louis Lenders <xerox_xerox2000(a)yahoo.co.uk>
Date: Mon Oct 26 13:04:27 2009 +0100
wuaueng: Add version resource.
---
dlls/wuaueng/Makefile.in | 2 ++
dlls/wuaueng/version.rc | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/dlls/wuaueng/Makefile.in b/dlls/wuaueng/Makefile.in
index 26be0bb..e4cd655 100644
--- a/dlls/wuaueng/Makefile.in
+++ b/dlls/wuaueng/Makefile.in
@@ -8,6 +8,8 @@ IMPORTS = kernel32
C_SRCS = \
main.c
+RC_SRCS = version.rc
+
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/wuaueng/version.rc b/dlls/wuaueng/version.rc
new file mode 100644
index 0000000..5931e86
--- /dev/null
+++ b/dlls/wuaueng/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2009 Louis Lenders
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine Update Agent"
+#define WINE_FILENAME_STR "wuaueng.dll"
+#define WINE_FILEVERSION 7,2,6001,788
+#define WINE_FILEVERSION_STR "7.2.6001.788"
+#define WINE_PRODUCTVERSION 7,2,6001,788
+#define WINE_PRODUCTVERSION_STR "7.2.6001.788"
+
+#include "wine/wine_common_ver.rc"
Module: wine
Branch: master
Commit: 3fc7da7f5e946016a382191d1add46a912a7cc22
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fc7da7f5e946016a382191d1…
Author: Jörg Höhle <hoehle(a)users.sourceforge.net>
Date: Sat Oct 17 16:40:28 2009 +0200
mciwave: Do not transition via Resume from Record into Play.
---
dlls/mciwave/mciwave.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c
index 664cc44..de78287 100644
--- a/dlls/mciwave/mciwave.c
+++ b/dlls/mciwave/mciwave.c
@@ -726,18 +726,18 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
if (wmw == NULL) return MCIERR_INVALID_DEVICE_ID;
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
- wmw->fInput = FALSE;
-
if (wmw->hFile == 0) {
WARN("Can't play: no file=%s!\n", debugstr_w(wmw->openParms.lpstrElementName));
return MCIERR_FILE_NOT_FOUND;
}
- if (wmw->dwStatus == MCI_MODE_PAUSE) {
+ if (wmw->dwStatus == MCI_MODE_PAUSE && !wmw->fInput) {
/* FIXME: parameters (start/end) in lpParams may not be used */
return WAVE_mciResume(wDevID, dwFlags, (LPMCI_GENERIC_PARMS)lpParms);
}
+ wmw->fInput = FALSE;
+
/** This function will be called again by a thread when async is used.
* We have to set MCI_MODE_PLAY before we do this so that the app can spin
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
@@ -972,16 +972,16 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
if (wmw == NULL) return MCIERR_INVALID_DEVICE_ID;
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
+ if (wmw->dwStatus == MCI_MODE_PAUSE && wmw->fInput) {
+ /* FIXME: parameters (start/end) in lpParams may not be used */
+ return WAVE_mciResume(wDevID, dwFlags, (LPMCI_GENERIC_PARMS)lpParms);
+ }
+
/* FIXME : since there is no way to determine in which mode the device is
* open (recording/playback) automatically switch from a mode to another
*/
wmw->fInput = TRUE;
- if (wmw->dwStatus == MCI_MODE_PAUSE) {
- /* FIXME: parameters (start/end) in lpParams may not be used */
- return WAVE_mciResume(wDevID, dwFlags, (LPMCI_GENERIC_PARMS)lpParms);
- }
-
/** This function will be called again by a thread when async is used.
* We have to set MCI_MODE_PLAY before we do this so that the app can spin
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.