Svante Signell : winepulse.drv: Avoid PATH_MAX in Windows code.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 24 10:41:08 CST 2015


Module: wine
Branch: master
Commit: 9d5173f77ddb95b7ed192015302786f82516c540
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9d5173f77ddb95b7ed192015302786f82516c540

Author: Svante Signell <svante.signell at gmail.com>
Date:   Mon Nov 23 16:59:39 2015 +0100

winepulse.drv: Avoid PATH_MAX in Windows code.

Signed-off-by: Svante Signell <svante.signell at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winepulse.drv/mmdevdrv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c
index 215a53e..24972ab 100644
--- a/dlls/winepulse.drv/mmdevdrv.c
+++ b/dlls/winepulse.drv/mmdevdrv.c
@@ -442,7 +442,7 @@ static void pulse_probe_settings(int render, WAVEFORMATEXTENSIBLE *fmt) {
 static HRESULT pulse_connect(void)
 {
     int len;
-    WCHAR path[PATH_MAX], *name;
+    WCHAR path[MAX_PATH], *name;
     char *str;
 
     if (!pulse_thread)
@@ -521,7 +521,7 @@ static void pulse_phys_speakers_cb(pa_context *c, const pa_sink_info *i, int eol
 static HRESULT pulse_test_connect(void)
 {
     int len, ret;
-    WCHAR path[PATH_MAX], *name;
+    WCHAR path[MAX_PATH], *name;
     char *str;
     pa_operation *o;
 




More information about the wine-cvs mailing list