Hans Leidekker : msi: Reset the MsiEnumPatchesExW index on failure.
Module: wine Branch: master Commit: dd1bef3498110ef0b30121943f064801b8206585 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd1bef3498110ef0b30121943f... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Apr 2 10:43:08 2010 +0200 msi: Reset the MsiEnumPatchesExW index on failure. --- dlls/msi/registry.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 3e03ecf..7a4c3f8 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -2041,7 +2041,7 @@ UINT WINAPI MsiEnumPatchesExW(LPCWSTR szProductCode, LPCWSTR szUserSid, DWORD idx = 0; UINT r; - static int last_index = 0; + static DWORD last_index; TRACE("(%s, %s, %d, %d, %d, %p, %p, %p, %p, %p)\n", debugstr_w(szProductCode), debugstr_w(szUserSid), dwContext, dwFilter, @@ -2077,6 +2077,8 @@ UINT WINAPI MsiEnumPatchesExW(LPCWSTR szProductCode, LPCWSTR szUserSid, if (r == ERROR_SUCCESS) last_index = dwIndex; + else + last_index = 0; return r; }
participants (1)
-
Alexandre Julliard