Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cfg/windows.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4825,7 +4825,7 @@ HFONT CreateFont(
<not-uninit/>
<not-bool/>
</arg>
<arg nr="2" direction="in">
<arg nr="2" direction="out">
<not-uninit/>
<strz/>
<minsize type="argvalue" arg="3"/>
Expand Down
17 changes: 13 additions & 4 deletions test/cfg/windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@
//

#include <windows.h>
#include <stdio.h>
#include <cstdio>
#include <direct.h>
#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>
#include <memory.h>
#include <mbstring.h>
#include <wchar.h>
#include <atlstr.h>
#include <string>

/// https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew
std::string constVariable_GetModuleFileName(void) {
char path[42];
if (GetModuleFileNameA(NULL, path, sizeof(path))==0)
return std::string();
return std::string{path};
}

int stringCompare_mbscmp(const unsigned char *string1, const unsigned char *string2)
{
Expand Down Expand Up @@ -1117,4 +1126,4 @@ void invalidPrintfArgType_StructMember(double d) { // #9672

BOOL MyEnableWindow(HWND hWnd, BOOL bEnable) {
return EnableWindow(hWnd, bEnable);
}
}