[Wine-patches] kernel32: Fix eterbug #3116.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Вт Янв 20 15:36:40 MSK 2009
For eterhack branch
----------- следующая часть -----------
From 53a439b2af52269d1006fbd3c6764e3a088e1a05 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 20 Jan 2009 15:24:52 +0300
Subject: [PATCH] kernel32: Fix eterbug #3116.
---
dlls/kernel32/file.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index 8be21a5..53feb92 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1433,6 +1433,9 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
}
}
+ /* eterbug #3116 */
+ if (!creation) creation = OPEN_EXISTING;
+
if (creation < CREATE_NEW || creation > TRUNCATE_EXISTING)
{
SetLastError( ERROR_INVALID_PARAMETER );
--
1.6.0.2.GIT
Подробная информация о списке рассылки Wine-patches