2022-06-28 21:08:23 +00:00
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
namespace user32 {
|
|
|
|
int WIN_FUNC LoadStringA(void* hInstance, unsigned int uID, char* lpBuffer, int cchBufferMax) {
|
2022-06-28 23:07:04 +00:00
|
|
|
DEBUG_LOG("LoadStringA %p %d %d\n", hInstance, uID, cchBufferMax);
|
2022-06-28 22:28:09 +00:00
|
|
|
strcpy(lpBuffer, "hello");
|
|
|
|
return 5;
|
2022-06-28 21:08:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void *wibo::resolveUser32(const char *name) {
|
|
|
|
if (strcmp(name, "LoadStringA") == 0) return (void *) user32::LoadStringA;
|
|
|
|
return 0;
|
|
|
|
}
|