Other noisy FIXME

Dimi Paun dimi at lattica.com
Sun Sep 28 13:47:07 CDT 2008


Printing the FIXME once should be enough.

diff --git a/dlls/user32/resource.c b/dlls/user32/resource.c
index cbdb4ea..b7bc81a 100644
--- a/dlls/user32/resource.c
+++ b/dlls/user32/resource.c
@@ -444,7 +444,13 @@ INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, LPSTR buffer, INT
  */
 DWORD WINAPI GetGuiResources( HANDLE hProcess, DWORD uiFlags )
 {
-    FIXME("(%p,%x): stub\n",hProcess,uiFlags);
+    static BOOL warn = TRUE;
+
+    if (warn) {
+        FIXME("(%p,%x): stub\n",hProcess,uiFlags);
+       warn = FALSE;
+    }
+
     SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
     return 0;
 }

-- 
Dimi.




More information about the wine-patches mailing list